Documentation
¶
Index ¶
- Constants
- func BeginTransaction(ctx context.Context) (err errors.CodeError)
- func CommitTransaction(ctx context.Context) (err errors.CodeError)
- func Execute(ctx context.Context, query string, args ...interface{}) (affected int64, lastInsertId int64, err errors.CodeError)
- func RollbackTransaction(ctx context.Context) (err errors.CodeError)
- func Service() service.Service
- type Column
- type ColumnScanner
- type ColumnType
- type FieldColumn
- type NullJson
- type NullSQLRaw
- type Row
- type Rows
Constants ¶
View Source
const ( StringType = ColumnType("string") IntType = ColumnType("int") FloatType = ColumnType("float") BytesType = ColumnType("bytes") JsonType = ColumnType("json") BoolType = ColumnType("bool") TimeType = ColumnType("time") UnknownType = ColumnType("unknown") )
Variables ¶
This section is empty.
Functions ¶
func BeginTransaction ¶ added in v0.8.1
func CommitTransaction ¶ added in v0.8.1
func RollbackTransaction ¶ added in v0.8.1
Types ¶
type ColumnScanner ¶ added in v0.9.6
type ColumnScanner struct {
// contains filtered or unexported fields
}
func NewColumnScanner ¶ added in v0.9.6
func NewColumnScanner(ct *sql.ColumnType) (scanner *ColumnScanner)
func (*ColumnScanner) Scan ¶ added in v0.9.6
func (c *ColumnScanner) Scan(src interface{}) error
type ColumnType ¶
type ColumnType string
type FieldColumn ¶ added in v0.3.10
type NullJson ¶
type NullJson struct { Json json.RawMessage Valid bool }
type NullSQLRaw ¶
func (*NullSQLRaw) Scan ¶
func (v *NullSQLRaw) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.