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
Click to show internal directories.
Click to hide internal directories.