Watch is an implementation of the storage.Watch interface, which is used
| 24 | |
| 25 | // Watch is an implementation of the storage.Watch interface, which is used |
| 26 | type Watch struct { |
| 27 | // database is a pointer to a Postgres database instance, which is used |
| 28 | // to perform operations on the relationship data. |
| 29 | database *db.Postgres |
| 30 | |
| 31 | // txOptions holds the configuration for database transactions, such as |
| 32 | // isolation level and read-only mode, to be applied when performing |
| 33 | // operations on the relationship data. |
| 34 | txOptions pgx.TxOptions |
| 35 | } |
| 36 | |
| 37 | // NewWatcher returns a new instance of the Watch. |
| 38 | func NewWatcher(database *db.Postgres) *Watch { |
nothing calls this directly
no outgoing calls
no test coverage detected