Package-level declarations

Types

Link copied to clipboard
internal class BindMessage(portalName: String, statementName: String, parameterCount: Int, parameterValues: ByteArray, parameterFormats: List<Int>, resultFormats: List<Int> = listOf(1), parameterValuesLength: Int = parameterValues.size) : FrontendMessage

Message sent to the backend to bind a prepared statement to a portal.

Link copied to clipboard
internal class CancelRequestMessage(processId: Int, secretKey: ByteArray) : FrontendMessage

Message sent by the frontend to cancel an ongoing request on another connection.

Link copied to clipboard
internal class CloseMessage(targetType: Char, name: String) : FrontendMessage

Message sent to the backend to close a statement or portal.

Link copied to clipboard
internal class DescribeMessage(targetType: Char, name: String) : FrontendMessage

Message sent to the backend to describe a statement or portal.

Link copied to clipboard
internal class ExecuteMessage(portalName: String, maxRows: Int = 0) : FrontendMessage

Message sent to the backend to execute a portal.

Link copied to clipboard
internal class FlushMessage : FrontendMessage

Message sent to the backend to force it to flush its output buffer.

Link copied to clipboard
internal class FrontendCopyDataMessage(data: ByteArray, offset: Int = 0, length: Int = data.size) : FrontendMessage

Sends data during a COPY IN operation.

Link copied to clipboard

Indicates completion of a COPY IN operation from the frontend.

Link copied to clipboard
internal class FrontendCopyFailMessage(errorMessage: String) : FrontendMessage

Fails a COPY IN operation from the frontend.

Link copied to clipboard
internal sealed interface FrontendMessage

Base interface for all messages sent to the PostgreSQL backend.

Link copied to clipboard
internal class ParseMessage(statementName: String, query: String, parameterTypes: IntArray = IntArray(0)) : FrontendMessage

Message sent to the backend to parse a prepared statement.

Link copied to clipboard
internal class PasswordMessage(password: String) : FrontendMessage

The password itself, in the clear, in answer to an AuthenticationCleartextPassword request.

Link copied to clipboard
internal class SASLInitialResponse(mechanism: String, clientFirstMessage: String) : FrontendMessage

First client response in the SASL mechanism.

Link copied to clipboard
internal class SASLResponse(clientFinalMessage: String) : FrontendMessage

Next client response in the SASL mechanism (usually sending client-final-message).

Link copied to clipboard
internal class SimpleQueryMessage(query: String) : FrontendMessage

Message sent by the frontend to execute a simple, un-parameterized SQL query.

Link copied to clipboard

Message sent by the frontend to request an SSL encrypted connection.

Link copied to clipboard
internal class StartupMessage(parameters: Map<String, String>) : FrontendMessage

Initial message sent by the frontend to start a connection with the server.

Link copied to clipboard
internal class SyncMessage : FrontendMessage

Message sent to the backend to synchronize the connection state and signal the end of a sequence of extended query messages.

Link copied to clipboard

Connection termination message (Tag 'X').