Back to Exposed

prepareStatement

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

1.2.01.6 KB
Original Source

prepareStatement

abstract suspend 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.


abstract suspend 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