PostgresNativeDriver

class PostgresNativeDriver(conn: CPointer<PGconn>, listenerSupport: ListenerSupport) : SqlDriver

Constructors

Link copied to clipboard
constructor(conn: CPointer<PGconn>, listenerSupport: ListenerSupport)

Functions

Link copied to clipboard
open override fun addListener(vararg queryKeys: String, listener: Query.Listener)
Link copied to clipboard
open override fun close()
Link copied to clipboard
fun copy(stdin: Sequence<String>): Long

Each element of stdin can be up to 2 GB.

Link copied to clipboard
Link copied to clipboard
open override fun execute(identifier: Int?, sql: String, parameters: Int, binders: SqlPreparedStatement.() -> Unit?): QueryResult.Value<Long>
Link copied to clipboard
open override fun <R> executeQuery(identifier: Int?, sql: String, mapper: (SqlCursor) -> QueryResult<R>, parameters: Int, binders: SqlPreparedStatement.() -> Unit?): QueryResult<R>
Link copied to clipboard
fun <R> executeQueryAsFlow(identifier: Int?, sql: String, mapper: suspend (PostgresCursor) -> R, parameters: Int, fetchSize: Int = 10, binders: PostgresPreparedStatement.() -> Unit?): Flow<R>
Link copied to clipboard
Link copied to clipboard
open override fun notifyListeners(vararg queryKeys: String)
Link copied to clipboard
open override fun removeListener(vararg queryKeys: String, listener: Query.Listener)