Back to Exposed

prepareStatement

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

1.2.01.4 KB
Original Source

prepareStatement

abstract fun prepareStatement(sql: String, returnKeys: Boolean): JdbcPreparedStatementApi

Returns a precompiled sql statement stored as a JdbcPreparedStatementApi implementation.

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


abstract fun prepareStatement(sql: String, columns: Array<String>): JdbcPreparedStatementApi

Returns a precompiled sql statement stored as a JdbcPreparedStatementApi 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