Documentation
¶
Index ¶
- type SQLite
- func (ds *SQLite) Add(ctx context.Context, entity datastore.Entity) error
- func (ds *SQLite) BatchAdd(ctx context.Context, entities []datastore.Entity) error
- func (ds *SQLite) Commit(ctx context.Context) error
- func (ds *SQLite) Count(ctx context.Context, entity datastore.Entity, options *datastore.FilterOptions) (int64, error)
- func (ds *SQLite) Delete(ctx context.Context, entity datastore.Entity) error
- func (ds *SQLite) Get(ctx context.Context, entity datastore.Entity) error
- func (ds *SQLite) Init() error
- func (ds *SQLite) IsExist(ctx context.Context, entity datastore.Entity) (bool, error)
- func (ds *SQLite) List(ctx context.Context, entity datastore.Entity, options *datastore.ListOptions) ([]datastore.Entity, error)
- func (ds *SQLite) 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 SQLite ¶
type SQLite struct {
// contains filtered or unexported fields
}
SQLite implements the Datastore interface
func (*SQLite) Count ¶
func (ds *SQLite) Count(ctx context.Context, entity datastore.Entity, options *datastore.FilterOptions) (int64, error)
Count counts the number of records
Click to show internal directories.
Click to hide internal directories.