Versions in this module Expand all Collapse all v1 v1.9.4 Jul 11, 2024 Changes in this version + type Driver struct + Client gorm.DB + 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