Back to Exposed

prepareStatement

docs/api/exposed-r2dbc/org.jetbrains.exposed.v1.r2dbc.statements/-r2dbc-connection-impl/prepare-statement.html

1.2.01.8 KB
Original Source

prepareStatement

open suspend override fun prepareStatement(sql: String, returnKeys: Boolean): R2dbcPreparedStatementImpl

Returns a precompiled sql statement stored as an R2dbcPreparedStatementImpl implementation.

To indicate that auto-generated keys should be made available for retrieval, set returnKeys to true.


open suspend override fun prepareStatement(sql: String, columns: Array<String>): R2dbcPreparedStatementImpl

Returns a precompiled sql statement stored as an R2dbcPreparedStatementImpl implementation.

To indicate that auto-generated keys should be made available for retrieval, provide the names of the target columns that contain the keys to be returned.

Generated by Dokka © 2026 Copyright