Documentation
¶
Index ¶
- func NewRecordAlreadyExists(id int64) error
- type Logger
- type Namespace
- type RecordAlreadyExistsError
- type WithIndexes
- func (ns *WithIndexes) AddIndex(index indexes.Index)
- func (ns *WithIndexes) Delete(id int64) error
- func (ns *WithIndexes) Get(id int64) record.Record
- func (ns *WithIndexes) Insert(item record.Record) error
- func (ns *WithIndexes) PreselectForExecutor(conditions where.Conditions) ([]record.Record, error)
- func (ns *WithIndexes) SetLogger(logger Logger)
- func (ns *WithIndexes) Upsert(item record.Record) 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
type WithIndexes struct {
// contains filtered or unexported fields
}
func CreateNamespace ¶ added in v0.1.0
func CreateNamespace() *WithIndexes
func (*WithIndexes) AddIndex ¶ added in v0.1.0
func (ns *WithIndexes) AddIndex(index indexes.Index)
func (*WithIndexes) Delete ¶ added in v0.1.0
func (ns *WithIndexes) Delete(id int64) error
func (*WithIndexes) Insert ¶ added in v0.1.0
func (ns *WithIndexes) Insert(item record.Record) error
func (*WithIndexes) PreselectForExecutor ¶ added in v0.1.0
func (ns *WithIndexes) PreselectForExecutor(conditions where.Conditions) ([]record.Record, error)
func (*WithIndexes) SetLogger ¶ added in v0.1.0
func (ns *WithIndexes) SetLogger(logger Logger)
Click to show internal directories.
Click to hide internal directories.