Skip to main content

runSql

Callable


  • Run one or more SQL queries.

    This step will treat each non-empty line in the input SQL as a query and try to execute it using $wpdb. Queries spanning multiple lines are not yet supported.


    Parameters

    • php: UniversalPHP

      A PHP instance or Playground client.

    • args: Omit<RunSqlStep<File>, step>
    • optionalprogressArgs: StepProgress

    Returns any