query

package
v2.3.0-beta14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package query provides functions to decode MySQL command phase packets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeQuery

func DecodeQuery(_ context.Context, data []byte) (*mysql.QueryPacket, error)

func DecodeResultSetMetadata

func DecodeResultSetMetadata(ctx context.Context, logger *zap.Logger, data []byte, rowType RowType) (interface{}, error)

func EncodeBinaryResultSet

func EncodeBinaryResultSet(ctx context.Context, logger *zap.Logger, resultSet *mysql.BinaryProtocolResultSet) ([]byte, error)

func EncodeTextResultSet

func EncodeTextResultSet(ctx context.Context, logger *zap.Logger, resultSet *mysql.TextResultSet) ([]byte, error)

Types

type RowType

type RowType int
const (
	Binary RowType = iota
	Text
)

Constants for RowType

Directories

Path Synopsis
Package preparedstmt provides functionality for decoding prepared statement packets.
Package preparedstmt provides functionality for decoding prepared statement packets.
Package rowscols provides encoding and decoding of MySQL row & column packets.
Package rowscols provides encoding and decoding of MySQL row & column packets.
Package utility provides encoding and decoding of utility command packets.
Package utility provides encoding and decoding of utility command packets.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL