mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
add_memory_database(memory_name, name=None, route=None)
This commit is contained in:
parent
257e1c1b1b
commit
1df4028d78
3 changed files with 10 additions and 6 deletions
|
|
@ -781,8 +781,8 @@ Use ``is_mutable=False`` to add an immutable database.
|
|||
|
||||
.. _datasette_add_memory_database:
|
||||
|
||||
.add_memory_database(name)
|
||||
--------------------------
|
||||
.add_memory_database(memory_name, name=None, route=None)
|
||||
--------------------------------------------------------
|
||||
|
||||
Adds a shared in-memory database with the specified name:
|
||||
|
||||
|
|
@ -800,7 +800,9 @@ This is a shortcut for the following:
|
|||
Database(datasette, memory_name="statistics")
|
||||
)
|
||||
|
||||
Using either of these pattern will result in the in-memory database being served at ``/statistics``.
|
||||
Using either of these patterns will result in the in-memory database being served at ``/statistics``.
|
||||
|
||||
The ``name`` and ``route`` parameters are optional and work the same way as they do for :ref:`datasette_add_database`.
|
||||
|
||||
.. _datasette_remove_database:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue