Function mutateSql

  • Executes SQL mutate the database

    Type Parameters

    • T

    Parameters

    • configOrConnection: ConfigOrConnection

      Either a dbConfig object or the connection to execute with

    • sql: Sql

      The SQL to execute - the result of the sql template tag - Should be some sort of mutation

    • Optional options: ExecuteOptions

      The oracle options for the SQL execution. options.autoCommit is set by default based on if configOrConnection is config.

    Returns Promise<Result<ToOutBinds<T>>>

    The result object for the execution

  • Executes SQL mutate the database

    Type Parameters

    • T

    Parameters

    • configOrConnection: ConfigOrConnection

      Either a dbConfig object or the connection to execute with

    • sql: string

      The SQL to execute - Should be some sort of mutation

    • Optional params: BindParameters

      The Parameters to pass into the SQL execution

    • Optional options: ExecuteOptions

      The oracle options for the SQL execution. options.autoCommit is set by default based on if configOrConnection is config.

    Returns Promise<Result<ToOutBinds<T>>>

    The result object for the execution

Generated using TypeDoc