Documentation ¶
Index ¶
- type DBx
- type Field
- func (this *Field) AsBool() (b bool, e error)
- func (this *Field) AsBytes() (b []byte, e error)
- func (this *Field) AsFloat32() (f float32, e error)
- func (this *Field) AsFloat64() (f float64, e error)
- func (this *Field) AsInt64() (n int64, e error)
- func (this *Field) AsString() (s string, e error)
- func (this *Field) AsTime() (t time.Time, e error)
- func (this *Field) AsUint64() (n uint64, e error)
- func (this *Field) IsNull() bool
- func (this *Field) ToBool() bool
- func (this *Field) ToBytes() []byte
- func (this *Field) ToFloat32() float32
- func (this *Field) ToFloat64() float64
- func (this *Field) ToInt64() (n int64)
- func (this *Field) ToString() (s string)
- func (this *Field) ToTime() (t time.Time)
- func (this *Field) ToUint64() uint64
- type FieldType
- type Fields
- type Query
- func (this *Query) Close() error
- func (this *Query) Exec(args ...interface{}) (ret sql.Result, err error)
- func (this *Query) FieldById(id int) *Field
- func (this *Query) FieldByName(name string) *Field
- func (this *Query) FieldCount() int
- func (this *Query) First() (err error)
- func (this *Query) GetOne(args ...interface{}) (err error)
- func (this *Query) Next() bool
- func (this *Query) Open(args ...interface{}) (err error)
- func (this *Query) SetSQL(query string, args ...interface{}) *Query
- type Transaction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBx ¶
type DBx struct {
// contains filtered or unexported fields
}
func (*DBx) NewTrans ¶
func (this *DBx) NewTrans() (t *Transaction, e error)
type Query ¶
type Query struct {
// contains filtered or unexported fields
}
func (*Query) FieldByName ¶
func (*Query) FieldCount ¶
type Transaction ¶
type Transaction struct {
// contains filtered or unexported fields
}
func (*Transaction) Commit ¶
func (this *Transaction) Commit() error
func (*Transaction) NewQuery ¶
func (this *Transaction) NewQuery(args ...interface{}) *Query
func (*Transaction) Rollback ¶
func (this *Transaction) Rollback() error
Click to show internal directories.
Click to hide internal directories.