SqliteDb

class SqliteDb

A database that the app registers with SqliteDebugTab.create. Make one with framework or support for a database that the app has open, or with file for a database file that the tab opens itself.

Give the tab the app's own handle to a database that the app uses: the tab then reads through the app's connection pool. A second connection that stays open to the same file can conflict with the app's connection, mostly in WAL mode. A file database is for a file that the app does not hold open, or holds through a library: the tab opens it read-only for each request and closes it after.

Types

Link copied to clipboard
object Companion

Factories for SqliteDb.

Properties

Link copied to clipboard

the database's name in the API. The routes take it as db.

Link copied to clipboard

What the tables and views hold, by table name.

Link copied to clipboard

The column names whose values SqliteValuePolicy.MASK_SENSITIVE shows although they look like they hold a secret, as the app passed them. A name matches a column, or a result column of POST query, with the same name in any case. With SqliteValuePolicy.VISIBLE, every value shows anyway.

Link copied to clipboard

what a client sees of the values: every value, or all but those of the columns whose names look like they hold a secret, which is the default. See SqliteValuePolicy.

Link copied to clipboard

whether a client may change the database through the tab, with POST exec, edit, and delete, which write through the app's handle. They answer 403 for a database that is not writable. POST query reads every database, through a connection that SQLite opens read-only. A file database is never writable.