public class PostgreSQLSupport
PostgreSQL protocol helpers and constants.
PostgreSQL uses a message-based protocol where each message starts with a type byte followed by a 4-byte length (including itself) and then payload.
| Modifier and Type | Member | Description |
|---|---|---|
| public static | AUTH_CLEAR_TEXT_PASSWORDAUTH_CLEAR_TEXT_PASSWORD as Int = 3 |
No summary. |
| public static | AUTH_GSSAUTH_GSS as Int = 7 |
No summary. |
| public static | AUTH_GSS_CONTINUEAUTH_GSS_CONTINUE as Int = 8 |
No summary. |
| public static | AUTH_KERBEROS_V5AUTH_KERBEROS_V5 as Int = 2 |
No summary. |
| public static | AUTH_MD5_PASSWORDAUTH_MD5_PASSWORD as Int = 5 |
No summary. |
| public static | AUTH_OKAUTH_OK as Int = 0 |
No summary. |
| public static | AUTH_SASLAUTH_SASL as Int = 10 |
No summary. |
| public static | AUTH_SASL_CONTINUEAUTH_SASL_CONTINUE as Int = 11 |
No summary. |
| public static | AUTH_SASL_FINALAUTH_SASL_FINAL as Int = 12 |
No summary. |
| public static | AUTH_SCM_CREDENTIALAUTH_SCM_CREDENTIAL as Int = 6 |
No summary. |
| public static | AUTH_SSPIAUTH_SSPI as Int = 9 |
No summary. |
| public static | MSG_AUTHENTICATION_REQUEST | No summary. |
| public static | MSG_BACKEND_KEY_DATA | No summary. |
| public static | MSG_BIND_COMPLETE | No summary. |
| public static | MSG_CLOSE_COMPLETE | No summary. |
| public static | MSG_COMMAND_COMPLETE | No summary. |
| public static | MSG_DATA_ROW | No summary. |
| public static | MSG_ERROR_RESPONSE | No summary. |
| public static | MSG_NO_DATA | No summary. |
| public static | MSG_PARAMETER_STATUS | No summary. |
| public static | MSG_PARSE_COMPLETE | No summary. |
| public static | MSG_PORTAL_SUSPENDED | No summary. |
| public static | MSG_READY_FOR_QUERY | No summary. |
| public static | MSG_ROW_DESCRIPTION | No summary. |
| public static | PROTOCOL_VERSIONPROTOCOL_VERSION as Int = 196608 |
No summary. |
| public static | SSL_REQUEST_CODESSL_REQUEST_CODE as Int = 80877103 |
No summary. |
| public static | STARTUP_MESSAGESTARTUP_MESSAGE as Int = 196608 |
No summary. |
| Modifier and Type | Member | Description |
|---|---|---|
| public static | byteToChar | Converts a byte to a character string. |
| public static | byteToHex | Converts a byte to hex string. |
| public static | bytesToString | Decodes a bounded UTF-8 protocol field without replacing non-ASCII text. |
| public static | decodeBytea | Decodes PostgreSQL bytea text in hex or legacy escaped-octal format. |
| public static | encodeUrlComponent | Encodes a string for use in URLs. |
| public static | readCString | Reads a null-terminated string from bytes. |
| public static | readInt16 | Reads a 2-byte short from bytes. |
| public static | readInt32 | Reads a 4-byte integer from bytes. |
| public static | stringToAsciiBytes | Encodes protocol text in UTF-8 (the historical method name is retained). |
| public static | writeCStringwriteCString(builder as PostgreSQLByteBuilder, value as String) as Void |
Writes a null-terminated string to bytes. |
| public static | writeInt16writeInt16(builder as PostgreSQLByteBuilder, value as Int) as Void |
Writes a 2-byte short. |
| public static | writeInt32writeInt32(builder as PostgreSQLByteBuilder, value as Int) as Void |
Writes a 4-byte integer. |