sqlparser

package
v0.0.0-...-acf744c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryKindSelect = "select"
	QueryKindUpdate = "update"
	QueryKindInsert = "insert"
	QueryKindDelete = "delete"
	QueryKindCreate = "create"
	QueryKindDrop   = "drop"
	QueryKindOther  = "other"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLQueryParserInterface

type SQLQueryParserInterface interface {
	Parse(sqlquery string) error
	ExtendInsert(column string, value string, coltype string) error
	GetCanonicalQuery() string
	GetKind() string
	IsSingeTable() bool
	IsRead() bool
	IsModifyDB() bool
	GetTable() string
	IsTableManage() bool
	IsTableDataUpdate() bool
	GetUpdateColumns() map[string]string
	HasCondition() bool
	IsOneColumnCondition() bool
	GetOneColumnCondition() (string, string)
	GetComments() []string
}

func NewSqlParser

func NewSqlParser() SQLQueryParserInterface

Jump to

Keyboard shortcuts

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