oficina / memoria Public

Clone
git clone https://amadan.net/oficina/memoria

Plain git — no account needed to clone.

Download

Download this file

1package memoria
2
3import "gorm.io/gorm"
4
5// gormTx is the transaction handle type. Aliased so store.go's closures
6// read as prose rather than as generics.
7type gormTx = gorm.DB
8
9// errRecordNotFound is GORM's "no such row". Named here so a caller reads
10// as a sentence and, more usefully, so the one place that decides what a
11// missing row MEANS is a place somebody can find: for a feed position it
12// means "never polled", which is an empty cursor and a legitimate
13// instruction, and everywhere else it is a 404.
14var errRecordNotFound = gorm.ErrRecordNotFound
15