Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDatabase ¶
type IDatabase interface { Name() DBName Connect(config any) error Table(name string) (IDatabase, error) Load(c context.Context, record Record) error // get by id Update(c context.Context, record Record, fields []model.FieldName) error Insert(c context.Context, record Record) error Delete(c context.Context, record Record) error Save(c context.Context, record Record) error // insert or update AutoSave(c context.Context, record Record) error // just save updated field // 实现自增id GetIncrementID(c context.Context, idKey string) (uint64, error) model.Watcher }
IDatabase DB接口类.
Click to show internal directories.
Click to hide internal directories.