sql

package
v0.0.0-...-c888d9e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2017 License: MIT Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pattern

func Pattern(query []byte) []byte

Pattern returns pattern of given query

Types

type QueryContext

type QueryContext struct {
	Query    []byte
	User     []byte
	Client   []byte
	Database []byte
	Time     time.Time
}

QueryContext holds information around query

func (*QueryContext) Marshal

func (c *QueryContext) Marshal() []byte

Marshal load []byte into QueryContext

func (*QueryContext) Unmarshal

func (c *QueryContext) Unmarshal(b []byte) (size uint32)

Unmarshal []byte into QueryContext

Jump to

Keyboard shortcuts

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