Documentation ¶
Index ¶
- Constants
- type AuthType
- type Client
- type ClientCfg
- type ColumnDataType
- type ColumnMeta
- type Criteria
- type DeleteArgs
- type Expr
- func ExprFromColumnName(name string) *Expr
- func ExprFromFunctionCall(function string, args ...*Expr) *Expr
- func ExprFromLiteral(x interface{}) *Expr
- func ExprFromOperator(operator string, args ...*Expr) *Expr
- func ExprFromOperatorWithColumnNameAndLiteral(columnName string, operator string, value interface{}) *Expr
- type ExprType
- type FindArgs
- type FindResultSet
- type FindSelectItem
- type InsertArgs
- type MysqlError
- type Order
- type UpdateArgs
Constants ¶
View Source
const ( EXPR_TYPE_COLUMN_NAME = mysqlxpb_expr.Expr_IDENT EXPR_TYPE_LITERAL = mysqlxpb_expr.Expr_LITERAL EXPR_TYPE_OPERATOR = mysqlxpb_expr.Expr_OPERATOR EXPR_TYPE_FUNCTION_CALL = mysqlxpb_expr.Expr_FUNC_CALL )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientCfg ¶
type ClientCfg struct { Addr string Username string Password string DbName string Location *time.Location AuthType AuthType InitialConns uint MaxConns uint OnTCPDial func(tc *net.TCPConn) error DialTimeout time.Duration ReadTimeout time.Duration WriteTimeout time.Duration IdleTimeout time.Duration Tls *tls.Config Log func(isErr bool, msg string) }
type ColumnDataType ¶
type ColumnDataType uint8
const ( COLUMN_DATA_TYPE_BIT ColumnDataType COLUMN_DATA_TYPE_SINT // int64 COLUMN_DATA_TYPE_UINT COLUMN_DATA_TYPE_FLOAT COLUMN_DATA_TYPE_DOUBLE COLUMN_DATA_TYPE_BYTES COLUMN_DATA_TYPE_ENUM COLUMN_DATA_TYPE_SET COLUMN_DATA_TYPE_TIME COLUMN_DATA_TYPE_DATETIME COLUMN_DATA_TYPE_DECIMAL COLUMN_DATA_TYPE_GEOMETRY )
type ColumnMeta ¶
type ColumnMeta struct { DataType ColumnDataType Name string Flag uint32 }
type DeleteArgs ¶
type Expr ¶
func ExprFromColumnName ¶
func ExprFromFunctionCall ¶
func ExprFromLiteral ¶
func ExprFromLiteral(x interface{}) *Expr
func ExprFromOperator ¶
type ExprType ¶
type ExprType = mysqlxpb_expr.Expr_Type
type FindArgs ¶
type FindArgs struct { TableName string Select []*FindSelectItem Criteria *Criteria Groups []*Expr Having *Expr }
type FindResultSet ¶
type FindResultSet struct { Meta []*ColumnMeta Rows [][]interface{} }
type FindSelectItem ¶
func FindSelectItemsFromColumnNames ¶
func FindSelectItemsFromColumnNames(columnNames []string) []*FindSelectItem
type InsertArgs ¶
type MysqlError ¶
func (MysqlError) Error ¶
func (e MysqlError) Error() string
type UpdateArgs ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.