executeSql
fun executeSql(sql: String, args: RelationReader? = null, opts: QueryOpts = QueryOpts(), user: String? = null)
Execute a DML/DDL SQL statement against this tx, with visibility into writes made earlier in the same writer call. Positional ? parameters come from args, supplied and matched by ordinal position like openQuery — unnamed or named $1..$N in order.
DML writes to forbidden schemas (xt, information_schema, pg_catalog) will throw.
The scope narrowing documented on openQuery applies to any read this performs — including an INSERT … SELECT source.