Documentation ¶
Index ¶
- type Database
- type Databases
- type Row
- type Store
- func (store *Store) AlterDatabase(conn net.Conn, stmt query.AlterDatabase) error
- func (store *Store) AlterTable(conn net.Conn, stmt query.AlterTable) error
- func (store *Store) Begin(conn net.Conn, stmt query.Begin) error
- func (store *Store) Commit(conn net.Conn, stmt query.Commit) error
- func (store *Store) CreateDatabase(conn net.Conn, stmt query.CreateDatabase) error
- func (store *Store) CreateTable(conn net.Conn, stmt query.CreateTable) error
- func (store *Store) Delete(conn net.Conn, stmt query.Delete) (sql.ResultSet, error)
- func (store *Store) DropDatabase(conn net.Conn, stmt query.DropDatabase) error
- func (store *Store) DropTable(conn net.Conn, stmt query.DropTable) error
- func (store *Store) Insert(conn net.Conn, stmt query.Insert) error
- func (store *Store) LookupDatabaseTable(conn net.Conn, dbName string, tblName string) (*Database, *Table, error)
- func (store *Store) Rollback(conn net.Conn, stmt query.Rollback) error
- func (store *Store) Select(conn net.Conn, stmt query.Select) (sql.ResultSet, error)
- func (store *Store) SystemSelect(conn net.Conn, stmt query.Select) (sql.ResultSet, error)
- func (store *Store) Update(conn net.Conn, stmt query.Update) (sql.ResultSet, error)
- func (store *Store) Use(conn net.Conn, stmt query.Use) error
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database represents a destination or source database of query.
func NewDatabaseWithName ¶
NewDatabaseWithName returns a new database with the specified string.
func (*Database) LookupTable ¶ added in v1.5.7
LookupTable returns a table with the specified name.
type Databases ¶
Databases represents a collection of databases.
func (Databases) AddDatabase ¶
AddDatabase adds a specified database.
func (Databases) DropDatabase ¶
DropDatabase remove the specified database.
func (Databases) LookupDatabase ¶ added in v1.5.7
LookupDatabase returns a database with the specified name.
type Row ¶
Row represents a row of a table.
func NewRowWith ¶
NewRowWith returns a new row with the specified columns.
type Store ¶ added in v1.6.0
type Store struct {
Databases
}
Store represents a data store.
func (*Store) AlterDatabase ¶ added in v1.6.0
AlterDatabase should handle a ALTER database statement.
func (*Store) AlterTable ¶ added in v1.6.0
AlterTable should handle a ALTER table statement.
func (*Store) CreateDatabase ¶ added in v1.6.0
CreateDatabase should handle a CREATE database statement.
func (*Store) CreateTable ¶ added in v1.6.0
CreateTable should handle a CREATE table statement.
func (*Store) DropDatabase ¶ added in v1.6.0
DropDatabase should handle a DROP database statement.
func (*Store) LookupDatabaseTable ¶ added in v1.6.0
func (*Store) SystemSelect ¶ added in v1.6.0
SystemSelect should handle a system SELECT statement.
type Table ¶
Table represents a destination or source database of query.
func NewTableWith ¶
NewTable returns a new table.