package
0.0.0-20240917120716-8843776e9f3a
Repository: https://github.com/cossacklabs/acra.git
Documentation: pkg.go.dev
# Functions
NewDataDecoderProcessor return new data encoder from/to binary format for tokenization.
NewDataEncoderProcessor return new data encoder from/to binary format for tokenization.
NewDataTypeFormat create new DataTypeFormat from ColumnInfo and ColumnEncryptionSetting.
NewMysqlBoundValue create base.BoundValue implementation object based on provided data and paramType.
NewMysqlCopyTextBoundValue create base.BoundValue with copied input data.
NewMySQLPreparedStatementsQuery create new PreparedStatementsQuery to handle SQL PreparedStatement in the following format https://dev.mysql.com/doc/refman/8.0/en/sql-prepared-statements.html.
NewMysqlProxy returns new Handler.
NewPacket returns new Packet.
NewPreparedStatement makes a new prepared statement.
NewPreparedStatementFieldTracker create new PreparedStatementFieldTracker.
NewPreparedStatementItem create a new PreparedStatementItem.
NewPreparedStatementRegistry makes a new empty prepared statement registry.
NewPreparedStatementWithName makes a new prepared statement with name and zero paramsNum.
NewProtocolState makes an initial MySQL state, awaiting for queries.
NewProxyFactory return new proxyFactory.
NewQueryInterruptedError return packed QueryInterrupted error https://dev.mysql.com/doc/internals/en/packet-ERR_Packet.html.
ParsePrepareStatementResponse parse prepared statement from packet data.
ParseResultField parses binary field and returns ColumnDescription.
ReadPacket from connection and return Packet struct with data or error.
# Constants
https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__column__definition__flags.html#details.
ClientDeprecateEOF - https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__capabilities__flags.html#gaad8e6e886899e90e820d6c2e0248469d- 0x1000000.
ClientProtocol41 - https://dev.mysql.com/doc/internals/en/capability-flags.html#flag-CLIENT_PROTOCOL_41.
ClientWaitDbTLSHandshake shows max time to wait for database TLS handshake.
Possible commands comment unused to avoid linter's warnings abous unused constant but leave correct order to re-use it in a future.
Possible commands comment unused to avoid linter's warnings abous unused constant but leave correct order to re-use it in a future.
Possible commands comment unused to avoid linter's warnings abous unused constant but leave correct order to re-use it in a future.
Possible commands comment unused to avoid linter's warnings abous unused constant but leave correct order to re-use it in a future.
Possible commands comment unused to avoid linter's warnings abous unused constant but leave correct order to re-use it in a future.
Possible commands comment unused to avoid linter's warnings abous unused constant but leave correct order to re-use it in a future.
Possible commands comment unused to avoid linter's warnings abous unused constant but leave correct order to re-use it in a future.
EOFPacket - https://dev.mysql.com/doc/internals/en/packet-EOF_Packet.html.
https://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html#error_er_query_interrupted.
Interrupted code constants.
MySQL packets significant bytes.
MARIADB_CLIENT_CACHE_METADATA - https://mariadb.com/kb/en/connection/#capabilities-.
MARIADB_CLIENT_EXTENDED_TYPE_INFO - https://mariadb.com/kb/en/connection/#capabilities-.
MariaDBDirectStatementID - https://mariadb.com/kb/en/com_stmt_execute/#specific-1-statement-id-value.
MaxPayloadLen https://dev.mysql.com/doc/internals/en/mysql-packet.html each packet splits into packets of this size.
https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__column__definition__flags.html#details.
OkPacket - https://dev.mysql.com/doc/internals/en/packet-OK_Packet.html.
PacketHeaderSize https://dev.mysql.com/doc/internals/en/mysql-packet.html#idm140406396409840.
PreparedStatementResponseLength MySQL prepared statement response packet length.
QueryExecutionWasInterrupted is a default message of the mysql's Query interrupted error.
SequenceIDIndex last byte of header https://dev.mysql.com/doc/internals/en/mysql-packet.html#idm140406396409840.
SslRequest - https://dev.mysql.com/doc/internals/en/capability-flags.html#flag-CLIENT_SSL.
# Variables
MySQL prepared statement response errors.
MySQL prepared statement response errors.
ErrStatementNotFound Err returned by prepared statement registry.
ErrStatementNotPresentInRegistry represent an error that prepared statement already exist in session registry.
TypeConfigurations contains specific info for used in TA types supported charset - https://mariadb.com/kb/en/supported-character-sets-and-collations/ SELECT id, collation_name FROM information_schema.collations ORDER BY id;.
# Structs
BaseMySQLDataProcessor implements processor and encode/decode binary intX values to text format which acceptable by Tokenizer.
Capabilities represent list of capabilities between client and server.
ColumnDescription https://dev.mysql.com/doc/internals/en/com-query-response.html#packet-Protocol::ColumnDefinition41.
DataDecoderProcessor implements processor and encode/decode binary intX values to text format which acceptable by Tokenizer.
DataEncoderProcessor implements processor and encode/decode binary intX values to text format which acceptable by Tokenizer.
DataTypeFormat implementation of type_awareness.DataTypeFormat for PostgreSQL.
Handler handles connection between client and MySQL db.
MySQLPreparedStatement is a MySQL PreparedStatement.
Packet struct that store header and payload, reads it from connection.
PreparedStatementFieldTracker track and replace DataType for column and param ColumnDefinition.
PreparedStatementItem represent an item to store in PreparedStatementRegistry.
PreparedStatementRegistry is a MySQL PreparedStatementRegistry.
PreparedStatementsQuery process MySQL SQL PreparedStatement.
PrepareStatementResponse used for handling MySQL prepared statement response https://dev.mysql.com/doc/internals/en/com-stmt-prepare-response.html status(1) + statement_id(4) + num_columns(2) + num_params(2) + reserved_1(1) + warning_count(2) status is ignored because of status checking on ProxyDatabaseConnection.
ProtocolState keeps track of MySQL protocol state.
SQLError is used for passing SQL errors.
TypeConfiguration represent configurations details of specific type.
# Interfaces
Dumper dumps :).
PreparedStatement is a prepared statement, ready to be executed.
# Type aliases
ByteArrayDump array.
Flags represent protocol ColumnDefinitionFlags https://dev.mysql.com/doc/dev/mysql-server/latest/group__group__cs__column__definition__flags.html.
ResponseHandler database response header.