light

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlterTableTo added in v0.2.2

func AlterTableTo(stmt *xast.AlterTableStmt) *xlight.AlterTableStmt

func CreateIndexTo added in v0.2.2

func CreateIndexTo(stmt *xast.CreateIndexStmt) *xlight.CreateIndexStmt

func CreateTableTo added in v0.2.2

func CreateTableTo(stmt *xast.CreateTableStmt) *xlight.CreateTableStmt

func CreateViewTo added in v0.2.2

func CreateViewTo(stmt *xast.CreateViewStmt) *xlight.CreateViewStmt

func DeleteTo added in v0.2.2

func DeleteTo(stmt *xast.DeleteStmt) *xlight.DeleteStmt

func DropIndexTo added in v0.2.2

func DropIndexTo(stmt *xast.DropIndexStmt) *xlight.DropIndexStmt

func InsertTo added in v0.2.2

func InsertTo(stmt *xast.InsertStmt) *xlight.InsertStmt

func Proto2SQL

func Proto2SQL(pb *xlight.QueryStmt) string

Proto2SQL returns SQL query string from protobuf message

func QueryTo

func QueryTo(stmt *xast.QueryStmt) *xlight.QueryStmt

QueryTo translates a xast query statement into xlight statement

func SQL2Proto

func SQL2Proto(str string) (*xlight.QueryStmt, error)

SQL2Proto returns protobuf message from SQL query string

func UpdateTo added in v0.2.2

func UpdateTo(stmt *xast.UpdateStmt) *xlight.UpdateStmt

func XAlterTableTo added in v0.2.2

func XAlterTableTo(stmt *xlight.AlterTableStmt) *xast.AlterTableStmt

func XCreateIndexTo added in v0.2.2

func XCreateIndexTo(stmt *xlight.CreateIndexStmt) *xast.CreateIndexStmt

func XCreateTableTo added in v0.2.2

func XCreateTableTo(stmt *xlight.CreateTableStmt) *xast.CreateTableStmt

func XCreateViewTo added in v0.2.2

func XCreateViewTo(stmt *xlight.CreateViewStmt) *xast.CreateViewStmt

func XDeleteTo added in v0.2.2

func XDeleteTo(stmt *xlight.DeleteStmt) *xast.DeleteStmt

func XDropIndexTo added in v0.2.2

func XDropIndexTo(stmt *xlight.DropIndexStmt) *xast.DropIndexStmt

func XInsertTo added in v0.2.2

func XInsertTo(stmt *xlight.InsertStmt) *xast.InsertStmt

func XQueryTo

func XQueryTo(stmt *xlight.QueryStmt) *xast.QueryStmt

QueryTo translates a xlight query statement into xast statement

func XUpdateTo added in v0.2.2

func XUpdateTo(stmt *xlight.UpdateStmt) *xast.UpdateStmt

Types

This section is empty.

Jump to

Keyboard shortcuts

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