mirror of
https://github.com/simonw/datasette.git
synced 2026-06-14 13:06:58 +02:00
If not --internal flag is passed but $DATASETTE_INTERNAL_DB_PATH is defined, then use that
This commit is contained in:
parent
05707aa16b
commit
cfe90653ac
1 changed files with 3 additions and 0 deletions
|
|
@ -310,6 +310,9 @@ class Datasette:
|
|||
Database(self, file, is_mutable=file not in self.immutables)
|
||||
)
|
||||
|
||||
if internal is None and "DATASETTE_INTERNAL_DB_PATH" in os.environ:
|
||||
internal = os.environ.get("DATASETTE_INTERNAL_DB_PATH")
|
||||
|
||||
self.internal_db_created = False
|
||||
if internal is None:
|
||||
self._internal_database = Database(self, memory_name=secrets.token_hex())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue