prepareStatement

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

Returns a precompiled sql statement stored as a PreparedStatementApi implementation.

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


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