PostgreSQL v3 wire driver (SCRAM-SHA-256, LRU prepared statement cache, cancellation propagation, TLS, and JS Serverless bridge) for unmbt/ciallo-orm
pub struct MockPgTransport {
// private fields
}impl PgTransport for MockPgTransportfn MockPgTransport::MockPgTransport(responses? : Array[Bytes], responder? : (Bytes) -> Array[Bytes]) -> MockPgTransportpub(all) struct PgConfig {
host : String
port : Int
user : String
password : String
database : String
ssl_mode : SslMode
connect_timeout_ms : Int
cancel_timeout_ms : Int
statement_cache_size : Int
pool : PoolConfig
application_name : String
} derive(Eq, Debug)fn PgConfig::PgConfig(host? : String, port? : Int, user? : String, password? : String, database? : String, ssl_mode? : SslMode, connect_timeout_ms? : Int, cancel_timeout_ms? : Int, statement_cache_size? : Int, pool? : PoolConfig, application_name? : String) -> PgConfigpub struct PgConnection {
// private fields
}async fn PgConnection::handshake(transport : &PgTransport, config : PgConfig, scram_nonce? : String) -> PgConnection raise DataErrorasync fn PgConnection::run_extended(self : PgConnection, sql : String, params : Array[SqlValue]) -> (Array[SqlRow], Int64) raise DataErrorpub struct PgConnector {
open : async (PgConfig) -> &PgTransport raise DataError
cancel : async (PgConfig, Int, Int) -> Unit
}fn PgConnector::PgConnector(open~ : async (PgConfig) -> &PgTransport raise DataError, cancel? : async (PgConfig, Int, Int) -> Unit) -> PgConnectorpub struct PgDriver {
// private fields
}async fn execute(self : PgDriver, sql : String, params : Array[SqlValue]) -> ExecResult raise DataErrorfn encode_cancel_request(process_id~ : Int, secret_key~ : Int) -> Bytesfn encode_close(target~ : Byte, name~ : String) -> Bytesfn encode_describe(target~ : Byte, name~ : String) -> Bytesfn encode_execute(portal_name~ : String, max_rows? : Int) -> Bytesfn encode_password_message(password : StringView) -> Bytesfn encode_sasl_initial_response(mechanism : StringView, initial_data : BytesView) -> Bytesfn encode_sasl_response(data : BytesView) -> Bytesfn encode_simple_query(sql : StringView) -> Bytesfn encode_ssl_request() -> Bytesfn parse_command_complete_rows(tag : StringView) -> Int64Install
Download zipPostgreSQL v3 wire driver (SCRAM-SHA-256, LRU prepared statement cache, cancellation propagation, TLS, and JS Serverless bridge) for unmbt/ciallo-orm