Expand description
The Db glue: how Tablo code reaches the pooled Toasty database, and the transaction a panel
write runs its record fns and hooks in.
Functions§
- count
- How many rows
queryholds, counted on the pooled [Db]: a model’s query, such asPost::filter(..), or aQuerysuch aslist_query’s. - count_
in - How many rows
queryholds, counted throughex: inside the transaction a record fn or a hook received, so the count sees the rows the write has made so far and a limit check holds against concurrent writes the isolation level orders. Reads 0 where Toasty answers no value, ascountdoes. - db
- Returns the pooled [
Db] registered on the router.