Download this file
| 1 | package memoria |
| 2 | |
| 3 | import "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. |
| 7 | type 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. |
| 14 | var errRecordNotFound = gorm.ErrRecordNotFound |
| 15 | |