Documentation ¶
Index ¶
- func InArgs[T Column](tt []T) (string, []any)
- type Column
- type SQliteStore
- func (o *SQliteStore[T, R]) Close() error
- func (o *SQliteStore[T, R]) DeleteMulti(ids []int64) error
- func (o *SQliteStore[T, R]) FindWhere(conds ...store.Cond) ([]T, error)
- func (o *SQliteStore[T, R]) GetMulti(ids []int64) ([]T, error)
- func (o *SQliteStore[T, R]) GetOne(id int64) (T, error)
- func (o *SQliteStore[T, R]) Insert(obj T) (int64, error)
- func (o *SQliteStore[T, R]) Update(id int64, obj T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SQliteStore ¶
type SQliteStore[T any, R store.Row[T]] struct { sync.RWMutex // contains filtered or unexported fields }
func (*SQliteStore[T, R]) Close ¶
func (o *SQliteStore[T, R]) Close() error
func (*SQliteStore[T, R]) DeleteMulti ¶
func (o *SQliteStore[T, R]) DeleteMulti(ids []int64) error
func (*SQliteStore[T, R]) FindWhere ¶
func (o *SQliteStore[T, R]) FindWhere(conds ...store.Cond) ([]T, error)
func (*SQliteStore[T, R]) GetMulti ¶
func (o *SQliteStore[T, R]) GetMulti(ids []int64) ([]T, error)
func (*SQliteStore[T, R]) GetOne ¶
func (o *SQliteStore[T, R]) GetOne(id int64) (T, error)
func (*SQliteStore[T, R]) Insert ¶
func (o *SQliteStore[T, R]) Insert(obj T) (int64, error)
func (*SQliteStore[T, R]) Update ¶
func (o *SQliteStore[T, R]) Update(id int64, obj T) error
Click to show internal directories.
Click to hide internal directories.