Provides minisql protocol constants facilities for this project.
Package: minisql.protocol.constants
Reachable from entry: yes
function componentName()Performs the componentName operation for the minisql protocol constants module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
const DEFAULT_RESULT_BATCH_ROWS = 512Defines the default result batch rows constant used by the minisql protocol constants module.
const FLAG_MORE = 2Indicates that another response frame with the same request identifier follows.
const FLAG_SECURE = 1Defines the flag secure constant used by the minisql protocol constants module.
const HEADER_BYTES = 32Defines the header bytes constant used by the minisql protocol constants module.
const HEADER_CRC_OFFSET = 24Defines the header crc offset constant used by the minisql protocol constants module.
function isImplemented()Returns whether implemented satisfies the condition required by the minisql protocol constants module. Returns the computed value or operation status. Does not modify its inputs.
function knownType(value)Implements known type for this module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
| Parameter | Type | Default | Description |
|---|---|---|---|
value |
dynamic |
— | Value consumed or transformed by the operation. |
const MAX_COLUMNS = 1024Defines the max columns constant used by the minisql protocol constants module.
const MAX_PAYLOAD_BYTES = 16777216Hard framing guard for one exceptionally wide SQL value or SQL statement.
const MAX_ROWS_PER_MESSAGE = 512Defines the max rows per message constant used by the minisql protocol constants module.
const MAX_SECURE_PLAINTEXT_BYTES = MAX_PAYLOAD_BYTES - SECURE_OVERHEAD_BYTESDefines the max secure plaintext bytes constant used by the minisql protocol constants module.
const PROTOCOL_MAGIC = "MSQL"Defines the protocol magic identifier used on every MiniSQL wire frame.
const PROTOCOL_VERSION = 1Defines the protocol version constant used by the minisql protocol constants module.
const SECURE_OVERHEAD_BYTES = 24Defines the secure overhead bytes constant used by the minisql protocol constants module.
const STATUS_COMMAND = 1Defines the status command constant used by the minisql protocol constants module.
const STATUS_ERROR = 3Defines the status error constant used by the minisql protocol constants module.
const STATUS_ROWS = 2Defines the status rows constant used by the minisql protocol constants module.
const TARGET_RESULT_FRAME_BYTES = 1048576 - SECURE_OVERHEAD_BYTESPreferred response payload size used for backpressure-friendly batching.
function targetMilestone()Performs the targetMilestone operation for the minisql protocol constants module. Returns the computed value or operation status. Any side effects are limited to the explicitly invoked dependencies.
const TYPE_AUTH_BEGIN = 5Defines the type auth begin constant used by the minisql protocol constants module.
const TYPE_AUTH_CHALLENGE = 6Defines the type auth challenge constant used by the minisql protocol constants module.
const TYPE_AUTH_OK = 8Defines the type auth ok constant used by the minisql protocol constants module.
const TYPE_AUTH_PROOF = 7Defines the type auth proof constant used by the minisql protocol constants module.
const TYPE_CANCEL = 9Administrative request that cooperatively cancels another session's query.
const TYPE_CLOSE = 4Defines the type close constant used by the minisql protocol constants module.
const TYPE_ERROR = 102Defines the type error constant used by the minisql protocol constants module.
const TYPE_HELLO = 1Defines the type hello constant used by the minisql protocol constants module.
const TYPE_PING = 3Defines the type ping constant used by the minisql protocol constants module.
const TYPE_PONG = 101Defines the type pong constant used by the minisql protocol constants module.
const TYPE_QUERY = 2Defines the type query constant used by the minisql protocol constants module.
const TYPE_RESPONSE = 100Defines the type response constant used by the minisql protocol constants module.