Documentation ¶
Index ¶
- Variables
- type Machine
- type Rd
- func (this *Rd) Add(row map[string]interface{}) int64
- func (this *Rd) Begin() *Rd
- func (this *Rd) Commit() *Rd
- func (this *Rd) Count() int64
- func (this *Rd) DatabaseIndex(databaseIndex int) *Rd
- func (this *Rd) Del() int64
- func (this *Rd) Execute(sql string, add bool) int64
- func (this *Rd) Exists() bool
- func (this *Rd) Field(field string) *Rd
- func (this *Rd) Get() map[string]string
- func (this *Rd) GetList() []map[string]string
- func (this *Rd) Group(group string) *Rd
- func (this *Rd) Index(index string) *Rd
- func (this *Rd) Limit(limit int) *Rd
- func (this *Rd) Master() *Rd
- func (this *Rd) Offset(offset int) *Rd
- func (this *Rd) Order(order string) *Rd
- func (this *Rd) Parameter(parameter ...interface{}) *Rd
- func (this *Rd) Query(sql string) []map[string]string
- func (this *Rd) Rollback() *Rd
- func (this *Rd) Set(row map[string]interface{}) int64
- func (this *Rd) Shard() *Rd
- func (this *Rd) TableIndex(tableIndex int) *Rd
- func (this *Rd) Tx(rd *Rd) *Rd
- func (this *Rd) Where(where string) *Rd
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Conf *struct { Database map[string]*struct { Count int `json:"count"` Cluster map[string]*struct { Master *struct { Count int `json:"count"` Machine []*Machine `json:"machine"` } `json:"master"` Slaver *struct { Count int `json:"count"` Machine []*Machine `json:"machine"` } `json:"slaver"` } `json:"cluster"` } `json:"database"` Table map[string]int `json:"table"` } )
Functions ¶
This section is empty.
Types ¶
type Rd ¶
type Rd struct {
// contains filtered or unexported fields
}
func (*Rd) DatabaseIndex ¶
func (*Rd) TableIndex ¶
Click to show internal directories.
Click to hide internal directories.