Module mysqlparser

Search:
Group by:

Types

ServerCommand = enum
  COM_SLEEP, COM_QUIT, COM_INIT_DB, COM_QUERY, COM_FIELD_LIST, COM_CREATE_DB,
  COM_DROP_DB, COM_REFRESH, COM_DEPRECATED_1, COM_STATISTICS, COM_PROCESS_INFO,
  COM_CONNECT, COM_PROCESS_KILL, COM_DEBUG, COM_PING, COM_TIME, COM_DELAYED_INSERT,
  COM_CHANGE_USER, COM_BINLOG_DUMP, COM_TABLE_DUMP, COM_CONNECT_OUT,
  COM_REGISTER_SLAVE, COM_STMT_PREPARE, COM_STMT_EXECUTE, COM_STMT_SEND_LONG_DATA,
  COM_STMT_CLOSE, COM_STMT_RESET, COM_SET_OPTION, COM_STMT_FETCH, COM_DAEMON,
  COM_BINLOG_DUMP_GTID, COM_RESET_CONNECTION, COM_END
Commands used by Client/Server Protocol to request mysql oparations.   Source Edit
PacketParserKind = enum
  ppkHandshake, ppkCommandResult
Kinds of PacketParser.   Source Edit
PacketParser = object
  buf: pointer
  bufLen: int
  bufPos: int
  bufRealLen: int
  word: string
  want: int
  payloadLen: int
  sequenceId: int
  remainingPayloadLen: int
  storedWord: string
  storedWant: int
  storedState: PacketState
  state: PacketState
  wantEncodedState: LenEncodedState
  case kind: PacketParserKind
  of ppkHandshake:
      nil

  of ppkCommandResult:
      command: ServerCommand

  isEntire: bool
Parser that is used to parse a Mysql Client/Server Protocol packet.   Source Edit
HandshakePacket = object
  sequenceId*: int
  protocolVersion*: int
  serverVersion*: string
  threadId*: int
  scrambleBuff1: string
  capabilities*: int
  capabilities1: int
  charset*: int
  serverStatus*: int
  capabilities2: int
  scrambleLen*: int
  scrambleBuff2: string
  scrambleBuff*: string
  plugin*: string
  protocol41*: bool
  state: HandshakeState
Packet from mysql server when connecting to the server that requires authentication.   Source Edit
EofPacket = object
  warningCount*: int
  serverStatus*: int
  state: EofState
  Source Edit
ResultPacketKind = enum
  rpkOk, rpkError, rpkResultSet
Kinds of result packet.   Source Edit
FieldPacket = object
  catalog*: string
  schema*: string
  table*: string
  orgTable*: string
  name*: string
  orgName*: string
  charset*: int
  fieldLen*: int
  fieldType*: int
  fieldFlags*: int
  decimals*: int
  defaultValue*: string
  state: FieldState
  Source Edit
RowsState = enum
  rowsFieldBegin, rowsFieldFull, rowsFieldEnd, rowsBufEmpty, rowsFinished
  Source Edit
ResultPacket = object
  sequenceId*: int
  case kind*: ResultPacketKind
  of rpkOk:
      affectedRows*: int
      lastInsertId*: int
      serverStatus*: int
      warningCount*: int
      message*: string
      okState: OkState

  of rpkError:
      errorCode*: int
      sqlStateMarker*: string
      sqlState*: string
      errorMessage*: string
      errState: ErrorState

  of rpkResultSet:
      extra*: string
      fieldsCount*: int
      fieldsPos: int
      fields*: seq[FieldPacket]
      fieldsEof: EofPacket
      rowsEof: EofPacket
      rsetState: ResultSetState
      fieldLen: int
      fieldBuf: pointer
      fieldBufLen: int
      fieldMeetNull: bool
      hasRows*: bool

  hasMoreResults: bool
The result packet object.   Source Edit
RowList = object
  value*: seq[string]
  counter: int
  Source Edit
ClientAuthenticationPacket = object
  sequenceId*: int
  capabilities*: int
  maxPacketSize*: int
  charset*: int
  user*: string
  scrambleBuff*: string
  database*: string
  protocol41*: bool
The authentication packet for the handshaking connection. Packet for login request.   Source Edit
ChangeUserPacket = object
  sequenceId*: int
  user*: string
  scrambleBuff*: string
  database*: string
  charset*: int
The packet for the change user command. Packet for change user.   Source Edit

Consts

CHARSET_BIG5_CHINESE_CI = 1
  Source Edit
CHARSET_LATIN2_CZECH_CS = 2
  Source Edit
CHARSET_DEC8_SWEDISH_CI = 3
  Source Edit
CHARSET_CP850_GENERAL_CI = 4
  Source Edit
CHARSET_LATIN1_GERMAN1_CI = 5
  Source Edit
CHARSET_HP8_ENGLISH_CI = 6
  Source Edit
CHARSET_KOI8R_GENERAL_CI = 7
  Source Edit
CHARSET_LATIN1_SWEDISH_CI = 8
  Source Edit
CHARSET_LATIN2_GENERAL_CI = 9
  Source Edit
CHARSET_SWE7_SWEDISH_CI = 10
  Source Edit
CHARSET_ASCII_GENERAL_CI = 11
  Source Edit
CHARSET_UJIS_JAPANESE_CI = 12
  Source Edit
CHARSET_SJIS_JAPANESE_CI = 13
  Source Edit
CHARSET_CP1251_BULGARIAN_CI = 14
  Source Edit
CHARSET_LATIN1_DANISH_CI = 15
  Source Edit
CHARSET_HEBREW_GENERAL_CI = 16
  Source Edit
CHARSET_TIS620_THAI_CI = 18
  Source Edit
CHARSET_EUCKR_KOREAN_CI = 19
  Source Edit
CHARSET_LATIN7_ESTONIAN_CS = 20
  Source Edit
CHARSET_LATIN2_HUNGARIAN_CI = 21
  Source Edit
CHARSET_KOI8U_GENERAL_CI = 22
  Source Edit
CHARSET_CP1251_UKRAINIAN_CI = 23
  Source Edit
CHARSET_GB2312_CHINESE_CI = 24
  Source Edit
CHARSET_GREEK_GENERAL_CI = 25
  Source Edit
CHARSET_CP1250_GENERAL_CI = 26
  Source Edit
CHARSET_LATIN2_CROATIAN_CI = 27
  Source Edit
CHARSET_GBK_CHINESE_CI = 28
  Source Edit
CHARSET_CP1257_LITHUANIAN_CI = 29
  Source Edit
CHARSET_LATIN5_TURKISH_CI = 30
  Source Edit
CHARSET_LATIN1_GERMAN2_CI = 31
  Source Edit
CHARSET_ARMSCII8_GENERAL_CI = 32
  Source Edit
CHARSET_UTF8_GENERAL_CI = 33
  Source Edit
CHARSET_CP1250_CZECH_CS = 34
  Source Edit
CHARSET_UCS2_GENERAL_CI = 35
  Source Edit
CHARSET_CP866_GENERAL_CI = 36
  Source Edit
CHARSET_KEYBCS2_GENERAL_CI = 37
  Source Edit
CHARSET_MACCE_GENERAL_CI = 38
  Source Edit
CHARSET_MACROMAN_GENERAL_CI = 39
  Source Edit
CHARSET_CP852_GENERAL_CI = 40
  Source Edit
CHARSET_LATIN7_GENERAL_CI = 41
  Source Edit
CHARSET_LATIN7_GENERAL_CS = 42
  Source Edit
CHARSET_MACCE_BIN = 43
  Source Edit
CHARSET_CP1250_CROATIAN_CI = 44
  Source Edit
CHARSET_UTF8MB4_GENERAL_CI = 45
  Source Edit
CHARSET_UTF8MB4_BIN = 46
  Source Edit
CHARSET_LATIN1_BIN = 47
  Source Edit
CHARSET_LATIN1_GENERAL_CI = 48
  Source Edit
CHARSET_LATIN1_GENERAL_CS = 49
  Source Edit
CHARSET_CP1251_BIN = 50
  Source Edit
CHARSET_CP1251_GENERAL_CI = 51
  Source Edit
CHARSET_CP1251_GENERAL_CS = 52
  Source Edit
CHARSET_MACROMAN_BIN = 53
  Source Edit
CHARSET_UTF16_GENERAL_CI = 54
  Source Edit
CHARSET_UTF16_BIN = 55
  Source Edit
CHARSET_UTF16LE_GENERAL_CI = 56
  Source Edit
CHARSET_CP1256_GENERAL_CI = 57
  Source Edit
CHARSET_CP1257_BIN = 58
  Source Edit
CHARSET_CP1257_GENERAL_CI = 59
  Source Edit
CHARSET_UTF32_GENERAL_CI = 60
  Source Edit
CHARSET_UTF32_BIN = 61
  Source Edit
CHARSET_UTF16LE_BIN = 62
  Source Edit
CHARSET_BINARY = 63
  Source Edit
CHARSET_ARMSCII8_BIN = 64
  Source Edit
CHARSET_ASCII_BIN = 65
  Source Edit
CHARSET_CP1250_BIN = 66
  Source Edit
CHARSET_CP1256_BIN = 67
  Source Edit
CHARSET_CP866_BIN = 68
  Source Edit
CHARSET_DEC8_BIN = 69
  Source Edit
CHARSET_GREEK_BIN = 70
  Source Edit
CHARSET_HEBREW_BIN = 71
  Source Edit
CHARSET_HP8_BIN = 72
  Source Edit
CHARSET_KEYBCS2_BIN = 73
  Source Edit
CHARSET_KOI8R_BIN = 74
  Source Edit
CHARSET_KOI8U_BIN = 75
  Source Edit
CHARSET_LATIN2_BIN = 77
  Source Edit
CHARSET_LATIN5_BIN = 78
  Source Edit
CHARSET_LATIN7_BIN = 79
  Source Edit
CHARSET_CP850_BIN = 80
  Source Edit
CHARSET_CP852_BIN = 81
  Source Edit
CHARSET_SWE7_BIN = 82
  Source Edit
CHARSET_UTF8_BIN = 83
  Source Edit
CHARSET_BIG5_BIN = 84
  Source Edit
CHARSET_EUCKR_BIN = 85
  Source Edit
CHARSET_GB2312_BIN = 86
  Source Edit
CHARSET_GBK_BIN = 87
  Source Edit
CHARSET_SJIS_BIN = 88
  Source Edit
CHARSET_TIS620_BIN = 89
  Source Edit
CHARSET_UCS2_BIN = 90
  Source Edit
CHARSET_UJIS_BIN = 91
  Source Edit
CHARSET_GEOSTD8_GENERAL_CI = 92
  Source Edit
CHARSET_GEOSTD8_BIN = 93
  Source Edit
CHARSET_LATIN1_SPANISH_CI = 94
  Source Edit
CHARSET_CP932_JAPANESE_CI = 95
  Source Edit
CHARSET_CP932_BIN = 96
  Source Edit
CHARSET_EUCJPMS_JAPANESE_CI = 97
  Source Edit
CHARSET_EUCJPMS_BIN = 98
  Source Edit
CHARSET_CP1250_POLISH_CI = 99
  Source Edit
CHARSET_UTF16_UNICODE_CI = 101
  Source Edit
CHARSET_UTF16_ICELANDIC_CI = 102
  Source Edit
CHARSET_UTF16_LATVIAN_CI = 103
  Source Edit
CHARSET_UTF16_ROMANIAN_CI = 104
  Source Edit
CHARSET_UTF16_SLOVENIAN_CI = 105
  Source Edit
CHARSET_UTF16_POLISH_CI = 106
  Source Edit
CHARSET_UTF16_ESTONIAN_CI = 107
  Source Edit
CHARSET_UTF16_SPANISH_CI = 108
  Source Edit
CHARSET_UTF16_SWEDISH_CI = 109
  Source Edit
CHARSET_UTF16_TURKISH_CI = 110
  Source Edit
CHARSET_UTF16_CZECH_CI = 111
  Source Edit
CHARSET_UTF16_DANISH_CI = 112
  Source Edit
CHARSET_UTF16_LITHUANIAN_CI = 113
  Source Edit
CHARSET_UTF16_SLOVAK_CI = 114
  Source Edit
CHARSET_UTF16_SPANISH2_CI = 115
  Source Edit
CHARSET_UTF16_ROMAN_CI = 116
  Source Edit
CHARSET_UTF16_PERSIAN_CI = 117
  Source Edit
CHARSET_UTF16_ESPERANTO_CI = 118
  Source Edit
CHARSET_UTF16_HUNGARIAN_CI = 119
  Source Edit
CHARSET_UTF16_SINHALA_CI = 120
  Source Edit
CHARSET_UTF16_GERMAN2_CI = 121
  Source Edit
CHARSET_UTF16_CROATIAN_MYSQL561_CI = 122
  Source Edit
CHARSET_UTF16_UNICODE_520_CI = 123
  Source Edit
CHARSET_UTF16_VIETNAMESE_CI = 124
  Source Edit
CHARSET_UCS2_UNICODE_CI = 128
  Source Edit
CHARSET_UCS2_ICELANDIC_CI = 129
  Source Edit
CHARSET_UCS2_LATVIAN_CI = 130
  Source Edit
CHARSET_UCS2_ROMANIAN_CI = 131
  Source Edit
CHARSET_UCS2_SLOVENIAN_CI = 132
  Source Edit
CHARSET_UCS2_POLISH_CI = 133
  Source Edit
CHARSET_UCS2_ESTONIAN_CI = 134
  Source Edit
CHARSET_UCS2_SPANISH_CI = 135
  Source Edit
CHARSET_UCS2_SWEDISH_CI = 136
  Source Edit
CHARSET_UCS2_TURKISH_CI = 137
  Source Edit
CHARSET_UCS2_CZECH_CI = 138
  Source Edit
CHARSET_UCS2_DANISH_CI = 139
  Source Edit
CHARSET_UCS2_LITHUANIAN_CI = 140
  Source Edit
CHARSET_UCS2_SLOVAK_CI = 141
  Source Edit
CHARSET_UCS2_SPANISH2_CI = 142
  Source Edit
CHARSET_UCS2_ROMAN_CI = 143
  Source Edit
CHARSET_UCS2_PERSIAN_CI = 144
  Source Edit
CHARSET_UCS2_ESPERANTO_CI = 145
  Source Edit
CHARSET_UCS2_HUNGARIAN_CI = 146
  Source Edit
CHARSET_UCS2_SINHALA_CI = 147
  Source Edit
CHARSET_UCS2_GERMAN2_CI = 148
  Source Edit
CHARSET_UCS2_CROATIAN_MYSQL561_CI = 149
  Source Edit
CHARSET_UCS2_UNICODE_520_CI = 150
  Source Edit
CHARSET_UCS2_VIETNAMESE_CI = 151
  Source Edit
CHARSET_UCS2_GENERAL_MYSQL500_CI = 159
  Source Edit
CHARSET_UTF32_UNICODE_CI = 160
  Source Edit
CHARSET_UTF32_ICELANDIC_CI = 161
  Source Edit
CHARSET_UTF32_LATVIAN_CI = 162
  Source Edit
CHARSET_UTF32_ROMANIAN_CI = 163
  Source Edit
CHARSET_UTF32_SLOVENIAN_CI = 164
  Source Edit
CHARSET_UTF32_POLISH_CI = 165
  Source Edit
CHARSET_UTF32_ESTONIAN_CI = 166
  Source Edit
CHARSET_UTF32_SPANISH_CI = 167
  Source Edit
CHARSET_UTF32_SWEDISH_CI = 168
  Source Edit
CHARSET_UTF32_TURKISH_CI = 169
  Source Edit
CHARSET_UTF32_CZECH_CI = 170
  Source Edit
CHARSET_UTF32_DANISH_CI = 171
  Source Edit
CHARSET_UTF32_LITHUANIAN_CI = 172
  Source Edit
CHARSET_UTF32_SLOVAK_CI = 173
  Source Edit
CHARSET_UTF32_SPANISH2_CI = 174
  Source Edit
CHARSET_UTF32_ROMAN_CI = 175
  Source Edit
CHARSET_UTF32_PERSIAN_CI = 176
  Source Edit
CHARSET_UTF32_ESPERANTO_CI = 177
  Source Edit
CHARSET_UTF32_HUNGARIAN_CI = 178
  Source Edit
CHARSET_UTF32_SINHALA_CI = 179
  Source Edit
CHARSET_UTF32_GERMAN2_CI = 180
  Source Edit
CHARSET_UTF32_CROATIAN_MYSQL561_CI = 181
  Source Edit
CHARSET_UTF32_UNICODE_520_CI = 182
  Source Edit
CHARSET_UTF32_VIETNAMESE_CI = 183
  Source Edit
CHARSET_UTF8_UNICODE_CI = 192
  Source Edit
CHARSET_UTF8_ICELANDIC_CI = 193
  Source Edit
CHARSET_UTF8_LATVIAN_CI = 194
  Source Edit
CHARSET_UTF8_ROMANIAN_CI = 195
  Source Edit
CHARSET_UTF8_SLOVENIAN_CI = 196
  Source Edit
CHARSET_UTF8_POLISH_CI = 197
  Source Edit
CHARSET_UTF8_ESTONIAN_CI = 198
  Source Edit
CHARSET_UTF8_SPANISH_CI = 199
  Source Edit
CHARSET_UTF8_SWEDISH_CI = 200
  Source Edit
CHARSET_UTF8_TURKISH_CI = 201
  Source Edit
CHARSET_UTF8_CZECH_CI = 202
  Source Edit
CHARSET_UTF8_DANISH_CI = 203
  Source Edit
CHARSET_UTF8_LITHUANIAN_CI = 204
  Source Edit
CHARSET_UTF8_SLOVAK_CI = 205
  Source Edit
CHARSET_UTF8_SPANISH2_CI = 206
  Source Edit
CHARSET_UTF8_ROMAN_CI = 207
  Source Edit
CHARSET_UTF8_PERSIAN_CI = 208
  Source Edit
CHARSET_UTF8_ESPERANTO_CI = 209
  Source Edit
CHARSET_UTF8_HUNGARIAN_CI = 210
  Source Edit
CHARSET_UTF8_SINHALA_CI = 211
  Source Edit
CHARSET_UTF8_GERMAN2_CI = 212
  Source Edit
CHARSET_UTF8_CROATIAN_MYSQL561_CI = 213
  Source Edit
CHARSET_UTF8_UNICODE_520_CI = 214
  Source Edit
CHARSET_UTF8_VIETNAMESE_CI = 215
  Source Edit
CHARSET_UTF8_GENERAL_MYSQL500_CI = 223
  Source Edit
CHARSET_UTF8MB4_UNICODE_CI = 224
  Source Edit
CHARSET_UTF8MB4_ICELANDIC_CI = 225
  Source Edit
CHARSET_UTF8MB4_LATVIAN_CI = 226
  Source Edit
CHARSET_UTF8MB4_ROMANIAN_CI = 227
  Source Edit
CHARSET_UTF8MB4_SLOVENIAN_CI = 228
  Source Edit
CHARSET_UTF8MB4_POLISH_CI = 229
  Source Edit
CHARSET_UTF8MB4_ESTONIAN_CI = 230
  Source Edit
CHARSET_UTF8MB4_SPANISH_CI = 231
  Source Edit
CHARSET_UTF8MB4_SWEDISH_CI = 232
  Source Edit
CHARSET_UTF8MB4_TURKISH_CI = 233
  Source Edit
CHARSET_UTF8MB4_CZECH_CI = 234
  Source Edit
CHARSET_UTF8MB4_DANISH_CI = 235
  Source Edit
CHARSET_UTF8MB4_LITHUANIAN_CI = 236
  Source Edit
CHARSET_UTF8MB4_SLOVAK_CI = 237
  Source Edit
CHARSET_UTF8MB4_SPANISH2_CI = 238
  Source Edit
CHARSET_UTF8MB4_ROMAN_CI = 239
  Source Edit
CHARSET_UTF8MB4_PERSIAN_CI = 240
  Source Edit
CHARSET_UTF8MB4_ESPERANTO_CI = 241
  Source Edit
CHARSET_UTF8MB4_HUNGARIAN_CI = 242
  Source Edit
CHARSET_UTF8MB4_SINHALA_CI = 243
  Source Edit
CHARSET_UTF8MB4_GERMAN2_CI = 244
  Source Edit
CHARSET_UTF8MB4_CROATIAN_MYSQL561_CI = 245
  Source Edit
CHARSET_UTF8MB4_UNICODE_520_CI = 246
  Source Edit
CHARSET_UTF8MB4_VIETNAMESE_CI = 247
  Source Edit
CHARSET_UTF8_GENERAL50_CI = 253
  Source Edit
CLIENT_LONG_PASSWORD = 1
Use the improved version of Old Password Authentication.   Source Edit
CLIENT_FOUND_ROWS = 2
Send found rows instead of affected rows in EOF_Packet.   Source Edit
CLIENT_LONG_FLAG = 4
Get all field flags.   Source Edit
CLIENT_CONNECT_WITH_DB = 8
Database (schema) name can be specified on connect in Handshake Response Packet.   Source Edit
CLIENT_NO_SCHEMA = 16
Don't allow database.table.field.   Source Edit
CLIENT_COMPRESS = 32
Compression protocol supported.   Source Edit
CLIENT_ODBC = 64
Special handling of ODBC behavior.   Source Edit
CLIENT_LOCAL_FILES = 128
Can use LOAD DATA LOCAL.   Source Edit
CLIENT_IGNORE_SPACE = 256
Ignore spaces before '('.   Source Edit
CLIENT_PROTOCOL_41 = 512
New 4.1 protocol.   Source Edit
CLIENT_INTERACTIVE = 1024
This is an interactive client.   Source Edit
CLIENT_SSL = 2048
Use SSL encryption for the session.   Source Edit
CLIENT_IGNORE_SIGPIPE = 4096
Client only flag.   Source Edit
CLIENT_TRANSACTIONS = 8192
Client knows about transactions.   Source Edit
CLIENT_RESERVED = 16384
DEPRECATED: Old flag for 4.1 protocol.   Source Edit
CLIENT_RESERVED2 = 32768
DEPRECATED: Old flag for 4.1 authentication.   Source Edit
CLIENT_MULTI_STATEMENTS = 65536
Enable/disable multi-stmt support.   Source Edit
CLIENT_MULTI_RESULTS = 131072
Enable/disable multi-results.   Source Edit
CLIENT_PS_MULTI_RESULTS = 262144
Multi-results and OUT parameters in PS-protocol.   Source Edit
CLIENT_PLUGIN_AUTH = 524288
Client supports plugin authentication.   Source Edit
CLIENT_CONNECT_ATTRS = 1048576
Client supports connection attributes.   Source Edit
CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA = 2097152
Enable authentication response packet to be larger than 255 bytes.   Source Edit
CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS = 4194304
Don't close the connection for a user account with expired password.   Source Edit
CLIENT_SESSION_TRACK = 8388608
Capable of handling server state change information.   Source Edit
CLIENT_DEPRECATE_EOF = 16777216
Client no longer needs EOF_Packet and will use OK_Packet instead.   Source Edit
CLIENT_SSL_VERIFY_SERVER_CERT = 1073741824
Verify server certificate.   Source Edit
CLIENT_REMEMBER_OPTIONS = 2147483648
Don't reset the options after an unsuccessful connect.   Source Edit
SERVER_STATUS_IN_TRANS = 1
Is raised when a multi-statement transaction has been started, either explicitly, by means of BEGIN or COMMIT AND CHAIN, or implicitly, by the first transactional statement, when autocommit=off.   Source Edit
SERVER_STATUS_AUTOCOMMIT = 2
Server in auto_commit mode.   Source Edit
SERVER_MORE_RESULTS_EXISTS = 8
Multi query - next query exists.   Source Edit
SERVER_QUERY_NO_GOOD_INDEX_USED = 16
  Source Edit
SERVER_QUERY_NO_INDEX_USED = 32
  Source Edit
SERVER_STATUS_CURSOR_EXISTS = 64
The server was able to fulfill the clients request and opened a read-only non-scrollable cursor for a query.   Source Edit
SERVER_STATUS_LAST_ROW_SENT = 128
This flag is sent when a read-only cursor is exhausted, in reply to COM_STMT_FETCH command.   Source Edit
SERVER_STATUS_DB_DROPPED = 256
A database was dropped.   Source Edit
SERVER_STATUS_NO_BACKSLASH_ESCAPES = 512
  Source Edit
SERVER_STATUS_METADATA_CHANGED = 1024
Sent to the client if after a prepared statement reprepare we discovered that the new statement returns a different number of result set fields.   Source Edit
SERVER_QUERY_WAS_SLOW = 2048
  Source Edit
SERVER_PS_OUT_PARAMS = 4096
To mark ResultSet containing output parameter values.   Source Edit
SERVER_STATUS_IN_TRANS_READONLY = 8192
Set at the same time as SERVER_STATUS_IN_TRANS if the started multi-statement transaction is a read-only transaction.   Source Edit
SERVER_SESSION_STATE_CHANGED = 16384
This status flag, when on, implies that one of the state information has changed on the server because of the execution of the last statement.   Source Edit

Procs

proc toProtocolHex(x: Natural; len: Positive): string {.
raises: [], tags: []
.}
Converts x to a string in the format of mysql Client/Server Protocol. For example: (0xFAFF, 2) => "xFFxFA", (0xFAFF00, 3) => "x00xFFxFA".   Source Edit
proc toProtocolInt(str: string): Natural {.
raises: [], tags: []
.}
Converts str to a nonnegative integer. For example: "xFFxFA" => 0xFAFF, "x00xFFxFA" => 0xFAFF00.   Source Edit
proc initRowList(): RowList {.
raises: [], tags: []
.}
  Source Edit
proc initPacketParser(kind: PacketParserKind): PacketParser {.
raises: [], tags: []
.}
Creates a new packet parser for parsing a handshake connection.   Source Edit
proc initPacketParser(command: ServerCommand): PacketParser {.
raises: [], tags: []
.}
Creates a new packet parser for receiving a result packet.   Source Edit
proc finished(p: PacketParser): bool {.
raises: [], tags: []
.}
Determines whether p has completed.   Source Edit
proc sequenceId(parser: PacketParser): int {.
raises: [], tags: []
.}
Gets the current sequence ID.   Source Edit
proc offset(parser: PacketParser): int {.
raises: [], tags: []
.}
Gets the offset of the latest buffer.   Source Edit
proc buffered(p: PacketParser): bool {.
raises: [], tags: []
.}
  Source Edit
proc mount(p: var PacketParser; buf: pointer; size: int) {.
raises: [], tags: []
.}
  Source Edit
proc mount(p: var PacketParser; buf: string) {.
raises: [], tags: []
.}
  Source Edit
proc parseHandshake(p: var PacketParser; packet: var HandshakePacket): bool {.
raises: [ValueError], tags: []
.}
Parses the buffer data in buf. size is the length of buf. If parsing is complete, p.``finished`` will be true.   Source Edit
proc parseResultHeader(p: var PacketParser; packet: var ResultPacket): bool {.
raises: [ValueError], tags: []
.}
Parses the buffer data in buf. size is the length of buf. If parsing is complete, p.``finished`` will be true.   Source Edit
proc parseOk(p: var PacketParser; packet: var ResultPacket; capabilities: int): bool {.
raises: [ValueError], tags: []
.}
  Source Edit
proc parseError(p: var PacketParser; packet: var ResultPacket; capabilities: int): bool {.
raises: [ValueError], tags: []
.}
  Source Edit
proc parseFields(p: var PacketParser; packet: var ResultPacket; capabilities: int): bool {.
raises: [ValueError], tags: []
.}
  Source Edit
proc hasMoreResults(packet: ResultPacket): bool {.
raises: [], tags: []
.}
  Source Edit
proc allocPasingField(packet: var ResultPacket; buf: pointer; size: int) {.
raises: [], tags: []
.}
  Source Edit
proc lenPasingField(packet: ResultPacket): int {.
raises: [], tags: []
.}
  Source Edit
proc parseRows(p: var PacketParser; packet: var ResultPacket; capabilities: int): tuple[
    offset: int, state: RowsState] {.
raises: [ValueError], tags: []
.}
  Source Edit
proc parseRows(p: var PacketParser; packet: var ResultPacket; capabilities: int;
              rows: var RowList): bool {.
raises: [ValueError], tags: []
.}
  Source Edit
proc formatClientAuth(packet: ClientAuthenticationPacket; password: string): string {.
raises: [], tags: []
.}
Converts packet to a string.   Source Edit
proc formatComQuit(): string {.
raises: [], tags: []
.}
Converts to a COM_QUIT (mysql Client/Server Protocol) string.   Source Edit
proc formatComInitDb(database: string): string {.
raises: [], tags: []
.}
Converts to a COM_INIT_DB (mysql Client/Server Protocol) string.   Source Edit
proc formatComQuery(sql: string): string {.
raises: [], tags: []
.}
Converts to a COM_QUERY (mysql Client/Server Protocol) string.   Source Edit
proc formatComChangeUser(packet: ChangeUserPacket; password: string): string {.
raises: [], tags: []
.}
Converts to a COM_CHANGE_USER (mysql Client/Server Protocol) string.   Source Edit
proc formatComPing(): string {.
raises: [], tags: []
.}
Converts to a COM_PING (mysql Client/Server Protocol) string.   Source Edit