query

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	Type  OperationType
	Table string
}

type OperationType

type OperationType string
const (
	SelectType  OperationType = "select"
	InsertType  OperationType = "insert"
	UpdateType  OperationType = "update"
	DeleteType  OperationType = "delete"
	CallType    OperationType = "call"
	ExecType    OperationType = "exec"
	ExecuteType OperationType = "execute"
	UpsertType  OperationType = "upsert"
)

func (OperationType) String

func (o OperationType) String() string

func (OperationType) TablePrefix

func (o OperationType) TablePrefix() string

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(stmt string) Operation

Jump to

Keyboard shortcuts

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