Documentation
¶
Index ¶
- type Relation
- func (r *Relation) Add(obj []types.Schema)
- func (r *Relation) BatchUpdate(fn func(txn *sqlx.Tx) error) error
- func (r *Relation) Blocks(limit int, offset int) ([]types.Hash, error)
- func (r *Relation) BlocksByAccount(address types.Address, limit int, offset int) ([]types.Hash, error)
- func (r *Relation) BlocksCount() (uint64, error)
- func (r *Relation) BlocksCountByType() (map[string]uint64, error)
- func (r *Relation) Close() error
- func (r *Relation) DB() *sqlx.DB
- func (r *Relation) Delete(obj types.Schema)
- func (r *Relation) EmptyStore() error
- func (r *Relation) Get(dest interface{}, query string) error
- func (r *Relation) Queryx(query string) (*sqlx.Rows, error)
- func (r *Relation) Register(t types.Schema) error
- func (r *Relation) Select(dest interface{}, query string) error
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Relation ¶
type Relation struct {
// contains filtered or unexported fields
}
func NewRelation ¶
func (*Relation) BatchUpdate ¶ added in v1.2.0
func (*Relation) BlocksByAccount ¶ added in v1.4.0
func (*Relation) BlocksCount ¶
func (*Relation) BlocksCountByType ¶
func (*Relation) EmptyStore ¶ added in v1.2.0
type Store ¶
type Store interface {
Blocks(limit int, offset int) ([]types.Hash, error)
BlocksByAccount(address types.Address, limit int, offset int) ([]types.Hash, error)
BlocksCount() (uint64, error)
BlocksCountByType() (map[string]uint64, error)
Select(dest interface{}, query string) error
Get(dest interface{}, query string) error
Queryx(query string) (*sqlx.Rows, error)
DB() *sqlx.DB
Close() error
EmptyStore() error
}
Click to show internal directories.
Click to hide internal directories.