Documentation
¶
Index ¶
- func ApplyEpochFilter(base *gorm.DB, epochFilter *registrystore.MemoryEpochFilter, ...) (*gorm.DB, error)
- func BoundedEntriesFromBase(ctx context.Context, base *gorm.DB, fromSeq *uint32, ...) ([]model.Entry, *string, *string, error)
- func RunBoundedQuery(ctx context.Context, query BoundedQuery) ([]model.Entry, *string, *string, error)
- func UUIDStringValue(id uuid.UUID) any
- func UUIDValue(id uuid.UUID) any
- func WhereEntryOrderAtOrBeforeAlias(tx *gorm.DB, alias string, bound model.Entry, entryIDValue EntryIDValueFunc) *gorm.DB
- func WhereEntryOrderBeforeAlias(tx *gorm.DB, alias string, bound model.Entry, entryIDValue EntryIDValueFunc) *gorm.DB
- func WhereEntryOrderStrictlyAfterAlias(tx *gorm.DB, alias string, bound model.Entry, entryIDValue EntryIDValueFunc) *gorm.DB
- func WhereSeqOrderBeforeAlias(tx *gorm.DB, alias string, bound model.Entry, entryIDValue EntryIDValueFunc) *gorm.DB
- func WhereSeqOrderStrictlyAfterAlias(tx *gorm.DB, alias string, bound model.Entry, entryIDValue EntryIDValueFunc) *gorm.DB
- type BoundedQuery
- type CursorErrorFunc
- type EntryIDValueFunc
- type LookupFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyEpochFilter ¶
func ApplyEpochFilter(base *gorm.DB, epochFilter *registrystore.MemoryEpochFilter, latestWhenNil bool, latestErr string) (*gorm.DB, error)
func BoundedEntriesFromBase ¶
func RunBoundedQuery ¶
func UUIDStringValue ¶
Types ¶
type BoundedQuery ¶
type BoundedQuery struct {
Base *gorm.DB
FromSeq *uint32
UpToEntryID *string
AfterEntryID *string
BeforeEntryID *string
Tail bool
Limit int
MaxLimit int
UpToLookup LookupFunc
BaseTransform func(*gorm.DB) (*gorm.DB, error)
CursorEntryError CursorErrorFunc
LimitError func(int) error
EntryNotFound func(string) error
EntryIDValue EntryIDValueFunc
ScanErr string
}
type EntryIDValueFunc ¶
EntryIDValueFunc converts a UUID entry id into the value shape expected by a datastore/dialect. PostgreSQL compares UUID values directly, while SQLite stores entry ids as text.
Click to show internal directories.
Click to hide internal directories.