Package-level declarations
Types
Link copied to clipboard
Optimized buffer for building binary packets for the database. Allows reserving space for size and filling it later without memory copying.
Link copied to clipboard
A highly optimized, buffered input stream tailored for the PostgreSQL wire protocol.
Link copied to clipboard
A highly optimized, buffered output stream tailored for the PostgreSQL wire protocol.
Link copied to clipboard
internal class PgStream(val host: String, val port: Int, val address: InetAddress, val loginTimeoutSecs: Int = 10, notificationBufferCapacity: Int = 256, val noticeHandler: NoticeHandler? = null, val sslConfiguration: SslConfiguration? = null, val cancelSignalTimeoutSecs: Int = 10) : AutoCloseable
Represents a connection stream to a PostgreSQL database. Handles reading and writing of PostgreSQL wire protocol messages.
Functions
Link copied to clipboard
Reads a float8 from the byte array starting at offset, as the IEEE 754 bit pattern it is sent as.
Link copied to clipboard
Reads a float4 from the byte array starting at offset, its four bytes being the IEEE 754 bit pattern PostgreSQL's binary format sends.
Link copied to clipboard
Reads a 16-bit short integer from the byte array starting at offset.