Documentation ¶
Overview ¶
Preprocessing Stuff. DEPRECATED: github.com/src-d/go-mysql-server now supports updates and deletes.
Index ¶
- Variables
- func InsertKey() interface{}
- func InsertValue(ctx *sql.Context) string
- func Preprocess(ctx *sql.Context, cat *sql.Catalog, query sqlparser.Statement) (nc *sql.Context, nq sqlparser.Statement, err error)
- func PreprocessSimple(ctx *sql.Context, cat *sql.Catalog, query string) (nc *sql.Context, nq string, err error)
- type PrimaryKeyTable
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ECantUpdatePK = parse.ErrUnsupportedFeature.New("Can't update primary key") EUpdateTooManyTables = parse.ErrUnsupportedFeature.New("Update: too many tables") EUpdateSubquery = parse.ErrUnsupportedSyntax.New("Update on Subquery") )
Functions ¶
func InsertValue ¶
Types ¶
type PrimaryKeyTable ¶
type PrimaryKeyTable interface { // Returns true, if the column is a primary key. IsPrimaryKey(column string) bool }
An sql.Table with a primary key.
Click to show internal directories.
Click to hide internal directories.