Configuration options for SQL execution with logging support

interface ExecuteSQLOptions {
    description?: string;
    ignoreLogging?: boolean;
    isMutation?: boolean;
    simpleSQLFallback?: string;
}

Properties

description?: string

Optional description for this SQL operation, used by logging, if logging is supported by the underlying provider

ignoreLogging?: boolean

If true, this statement will not be logged to any logging session

isMutation?: boolean

Whether this is a data mutation operation (INSERT/UPDATE/DELETE or SP call that results in any data change)

simpleSQLFallback?: string

Simple SQL fallback for loggers to emit logging of a simpler SQL statement that doesn't have extra functionality that isn't important for migrations or other logging purposes.