Versions in this module Expand all Collapse all v1 v1.0.0 Feb 7, 2026 Changes in this version + type Client struct + func NewClient(caller any) Client + func (_c Client) BulkCreate(ctx context.Context, objs []*Obj) (objKeys []ObjKey, err error) + func (_c Client) BulkDelete(ctx context.Context, objKeys []ObjKey) (deletedKeys []*ObjKey, err error) + func (_c Client) BulkLoad(ctx context.Context, objKeys []ObjKey) (books []*Obj, err error) + func (_c Client) BulkRevise(ctx context.Context, objs []*Obj) (revisedKeys []ObjKey, err error) + func (_c Client) BulkStore(ctx context.Context, objs []*Obj) (storedKeys []ObjKey, err error) + func (_c Client) Count(ctx context.Context, query Query) (count int, err error) + func (_c Client) Create(ctx context.Context, obj *Obj) (objKey ObjKey, err error) + func (_c Client) Delete(ctx context.Context, objKey ObjKey) (deleted bool, err error) + func (_c Client) List(ctx context.Context, query Query) (objs []*Obj, totalCount int, err error) + func (_c Client) Load(ctx context.Context, objKey ObjKey) (obj *Obj, found bool, err error) + func (_c Client) Lookup(ctx context.Context, query Query) (obj *Obj, found bool, err error) + func (_c Client) MustDelete(ctx context.Context, objKey ObjKey) (err error) + func (_c Client) MustLoad(ctx context.Context, objKey ObjKey) (obj *Obj, err error) + func (_c Client) MustLookup(ctx context.Context, query Query) (obj *Obj, err error) + func (_c Client) MustRevise(ctx context.Context, obj *Obj) (err error) + func (_c Client) MustStore(ctx context.Context, obj *Obj) (err error) + func (_c Client) Purge(ctx context.Context, query Query) (deletedKeys []*ObjKey, err error) + func (_c Client) Revise(ctx context.Context, obj *Obj) (revised bool, err error) + func (_c Client) Store(ctx context.Context, obj *Obj) (stored bool, err error) + type Obj struct + CreatedAt time.Time + Example string + Key ObjKey + Revision int + UpdatedAt time.Time + func (obj *Obj) Validate(ctx context.Context) error + type ObjKey struct + ID int + func ParseKey(id any) ObjKey + func (k *ObjKey) Scan(value interface{}) error + func (k *ObjKey) UnmarshalJSON(b []byte) error + func (k ObjKey) Equal(other ObjKey) bool + func (k ObjKey) IsZero() bool + func (k ObjKey) MarshalJSON() (b []byte, err error) + func (k ObjKey) String() string + func (k ObjKey) Value() (driver.Value, error) + type Query struct + Example string + Key ObjKey + Keys []ObjKey + Limit int + Offset int + OrderBy string + Q string + Select string + func (q *Query) Validate(ctx context.Context) error