Documentation
¶
Overview ¶
Package dbtest runs a test on both engines the engine's shared database can be on.
SQLite always runs. PostgreSQL runs when TASKS_TEST_SQL_DSN names a server whose role may create databases (cloud's scripts/postgres.sh starts one, and exports it as CLOUD_TEST_SQL_DSN); without it the postgres subtest is a visible skip.
The body is handed a function that opens a handle on the test's database. Each call is a pool of its own onto the same rows, which is what a replica is: two pods do not share a pool, they share a server.
Index ¶
Constants ¶
View Source
const Env = "TASKS_TEST_SQL_DSN"
Env names the PostgreSQL server the postgres leg runs on.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.