Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxStore ¶
type TxStore interface {
Count(filter resource.Filter) (int, error)
FindPagedRIDs(filter resource.Filter, offset int, limit int) ([]resource.RID, error)
FindRecords(rids ...resource.RID) (resource.Box[resource.Record], error)
FindRecord(rid resource.RID) (*resource.Record, error)
FindCreatorByCID(cid resource.CID) (resource.Creator, error)
FindCreatorByNickname(source source.ID, nickname string) (resource.Creator, error)
FindURLs(normalizedURLs ...string) ([]string, error)
FindTagNames(tids ...resource.TID) ([]string, error)
TagNames() ([]string, error)
CID(source source.ID, platformID string) resource.CID
UpsertTags(tags []models.Tag) error
UpsertCreator(source source.ID, creatorInfo models.CreatorInfo) (resource.CID, error)
SaveRecord(metadata *models.Metadata, characterCard *png.CharacterCard, time timestamp.Nano, importIndex ...int) (resource.RID, error)
RestoreRecord(rec *resource.Record, characterCard *png.CharacterCard) (resource.RID, error)
UpdateSyncData(rid resource.RID, syncData resource.SyncData) error
UpdateExportData(rid resource.RID, exportData resource.ExportData) error
UpdateFavoriteData(favorite bool, rids ...resource.RID) error
ToggleFavorite(rid resource.RID) error
Delete(rids ...resource.RID) (int, error)
CleanupCreators() (int, error)
}
TxStore provides transactional record operations
Click to show internal directories.
Click to hide internal directories.