Documentation ¶
Index ¶
- type Driver
- func (m *Driver) Add(ctx context.Context, entity datastore.Entity) error
- func (m *Driver) BatchAdd(ctx context.Context, entities []datastore.Entity) error
- func (m *Driver) Count(ctx context.Context, entity datastore.Entity, ...) (int64, error)
- func (m *Driver) Delete(ctx context.Context, entity datastore.Entity) error
- func (m *Driver) Get(ctx context.Context, entity datastore.Entity) error
- func (m *Driver) IsExist(ctx context.Context, entity datastore.Entity) (bool, error)
- func (m *Driver) List(ctx context.Context, entity datastore.Entity, op *datastore.ListOptions) ([]datastore.Entity, error)
- func (m *Driver) Put(ctx context.Context, entity datastore.Entity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
Driver is a unified implementation of SQL driver of datastore
func (*Driver) Count ¶
func (m *Driver) Count(ctx context.Context, entity datastore.Entity, filterOptions *datastore.FilterOptions) (int64, error)
Count counts entities
Click to show internal directories.
Click to hide internal directories.