Documentation
¶
Index ¶
- Constants
- Variables
- type AlterDatabase
- type AlterTable
- type Begin
- type Commit
- type Conn
- type Constraint
- type Copy
- type CreateDatabase
- type CreateIndex
- type CreateTable
- type DCOExecutor
- type DDOExecutor
- type DMOExecutor
- type DataType
- type Delete
- type DropDatabase
- type DropIndex
- type DropTable
- type Executor
- type Function
- type FunctionExecutor
- type Insert
- type Parser
- type QueryExecutor
- type ResultSet
- type ResultSetColumn
- type ResultSetRow
- type ResultSetSchema
- type Rollback
- type Schema
- type Select
- type Statement
- type SystemDMOExecutor
- type SystemQueryExecutor
- type TCOExecutor
- type Truncate
- type Update
- type Use
- type Vacuum
Constants ¶
const ( EQ = query.EQ NEQ = query.NEQ LT = query.LT LE = query.LE GT = query.GT GE = query.GE IN = query.IN NIN = query.NIN )
const (
Version = "v1.5.3"
)
Variables ¶
var ErrEmptyQuery = parser.ErrEmptyQuery
ErrEmptyQuery is returned when the query is empty.
Functions ¶
This section is empty.
Types ¶
type AlterDatabase ¶ added in v1.3.2
type AlterDatabase = query.AlterDatabase
AlterDatabase represents a "ALTER DATABASE" statement interface.
type AlterTable ¶ added in v1.3.2
type AlterTable = query.AlterTable
AlterTable represents a "ALTER TABLE" statement interface.
type Constraint ¶ added in v1.4.0
type Constraint = query.Constraint
Constraint represents a constraint.
type CreateDatabase ¶ added in v1.3.2
type CreateDatabase = query.CreateDatabase
CreateDatabase represents a "CREATE DATABASE" statement interface.
type CreateIndex ¶ added in v1.4.2
type CreateIndex = query.CreateIndex
CreateIndex represents a "CREATE INDEX" statement interface.
type CreateTable ¶ added in v1.3.2
type CreateTable = query.CreateTable
CreateTable represents a "CREATE TABLE" statement interface.
type DCOExecutor ¶ added in v1.4.0
DCOExecutor defines a executor interface for DCO (Data Control Operations).
type DDOExecutor ¶ added in v1.3.1
type DDOExecutor interface { // CreateDatabase handles a CREATE DATABASE query. CreateDatabase(Conn, CreateDatabase) error // CreateTable handles a CREATE TABLE query. CreateTable(Conn, CreateTable) error // AlterDatabase handles a ALTER DATABASE query. AlterDatabase(Conn, AlterDatabase) error // AlterTable handles a ALTER TABLE query. AlterTable(Conn, AlterTable) error // DropDatabase handles a DROP DATABASE query. DropDatabase(Conn, DropDatabase) error // DropIndex handles a DROP INDEX query. DropTable(Conn, DropTable) error }
DDOExecutor defines a executor interface for DDO (Data Definition Operations).
type DMOExecutor ¶ added in v1.3.1
type DMOExecutor interface { // Insert handles a INSERT query. Insert(Conn, Insert) error // Select handles a SELECT query. Select(Conn, Select) (ResultSet, error) // Update handles a UPDATE query. Update(Conn, Update) (ResultSet, error) // Delete handles a DELETE query. Delete(Conn, Delete) (ResultSet, error) }
DMOExecutor defines a executor interface for DMO (Data Manipulation Operations).
type DropDatabase ¶ added in v1.3.2
type DropDatabase = query.DropDatabase
DropDatabase represents a "DROP DATABASE" statement interface.
type Executor ¶ added in v1.3.1
type Executor interface { QueryExecutor SystemQueryExecutor }
Executor represents a frontend message executor.
type FunctionExecutor ¶ added in v1.3.2
type FunctionExecutor = query.FunctionExecutor
FunctionExecutor represents a function executor.
type Parser ¶
type Parser interface { // ParseString parses a SQL statement string and returns the query statements. ParseString(string) ([]query.Statement, error) }
Parser represents a parser interface for SQL.
type QueryExecutor ¶ added in v1.3.1
type QueryExecutor interface { DDOExecutor DMOExecutor DCOExecutor TCOExecutor }
QueryExecutor represents a user query message executor.
type ResultSetColumn ¶ added in v1.4.0
ResultSetColumn represents a column interface in a resultset.
type ResultSetRow ¶ added in v1.4.0
Row represents a row interface.
type ResultSetSchema ¶ added in v1.4.0
ResultSetSchema represents a schema interface in a resultset.
type SystemDMOExecutor ¶ added in v1.4.0
type SystemDMOExecutor interface { // SystemSelect handles a system SELECT query. SystemSelect(Conn, Select) (ResultSet, error) }
SystemDMOExecutor defines a system executor interface for DMO (Data Manipulation Operations).
type SystemQueryExecutor ¶ added in v1.3.1
type SystemQueryExecutor interface { SystemDMOExecutor }
SystemQueryExecutor represents a system query message executor.
type TCOExecutor ¶ added in v1.4.0
type TCOExecutor interface { // Begin handles a BEGIN query. Begin(Conn, Begin) error // Commit handles a COMMIT query. Commit(Conn, Commit) error // Rollback handles a ROLLBACK query. Rollback(Conn, Rollback) error }
TCOExecutor defines a executor interface for TCO (Transaction Control Operations).