Documentation
¶
Index ¶
- func NewRecordAlreadyExists(id int64) error
- type Logger
- type Namespace
- type RecordAlreadyExistsError
- type WithIndexes
- func (ns *WithIndexes[R]) AddIndex(index indexes.Index[R])
- func (ns *WithIndexes[R]) Delete(id int64) error
- func (ns *WithIndexes[R]) Get(id int64) (R, bool)
- func (ns *WithIndexes[R]) Insert(item R) error
- func (ns *WithIndexes[R]) PreselectForExecutor(conditions where.Conditions[R]) ([]R, error)
- func (ns *WithIndexes[R]) SetLogger(logger Logger)
- func (ns *WithIndexes[R]) Upsert(item R) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRecordAlreadyExists ¶ added in v0.1.0
Types ¶
type RecordAlreadyExistsError ¶ added in v0.1.0
type RecordAlreadyExistsError struct {
ID int64
}
func (RecordAlreadyExistsError) Error ¶ added in v0.1.0
func (e RecordAlreadyExistsError) Error() string
func (RecordAlreadyExistsError) Is ¶ added in v0.1.0
func (e RecordAlreadyExistsError) Is(err error) bool
type WithIndexes ¶ added in v0.1.0
func CreateNamespace ¶ added in v0.1.0
func CreateNamespace[R record.Record]() *WithIndexes[R]
func (*WithIndexes[R]) AddIndex ¶ added in v0.1.0
func (ns *WithIndexes[R]) AddIndex(index indexes.Index[R])
func (*WithIndexes[R]) Delete ¶ added in v0.1.0
func (ns *WithIndexes[R]) Delete(id int64) error
func (*WithIndexes[R]) Get ¶ added in v0.1.0
func (ns *WithIndexes[R]) Get(id int64) (R, bool)
func (*WithIndexes[R]) Insert ¶ added in v0.1.0
func (ns *WithIndexes[R]) Insert(item R) error
func (*WithIndexes[R]) PreselectForExecutor ¶ added in v0.1.0
func (ns *WithIndexes[R]) PreselectForExecutor(conditions where.Conditions[R]) ( []R, error, )
func (*WithIndexes[R]) SetLogger ¶ added in v0.1.0
func (ns *WithIndexes[R]) SetLogger(logger Logger)
func (*WithIndexes[R]) Upsert ¶ added in v0.1.0
func (ns *WithIndexes[R]) Upsert(item R) error
Click to show internal directories.
Click to hide internal directories.