Expand description
Open a Db from a database URL.
The URL scheme picks the backend: sqlite:, postgres:// (feature
postgres) or mysql:// (feature mysql). Error messages name the
scheme only, never the URL, which may hold a password.
Functionsยง
- backend_
kind - The backend a URL scheme selects, or
Nonefor an unknown scheme. - connect_
url - Open a
Dbfrom asqlite:,postgres://ormysql://URL. - scratch_
db - An in-memory SQLite database, for commands that need a
Dbbut never touch it (makemigrations,squashmigrations). - url_
scheme - The scheme of
url(text before the first:), lower-cased, when it is a valid URL scheme.