You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
datasette.add_memory_database("test_json_array")
# or make that first argument to add_database() optional and support:datasette.add_database(memory_name="test_json_array")
I like the .add_memory_database() option. I also like that it makes it more obvious that this is a capability of Datasette, since I'm excited to see more plugins, features and tests that take advantage of it.
simonw
changed the title
Shortcut for adding a new memory database
datasette.add_memory_database() method
Mar 1, 2021
I just wrote this code:
datasette/tests/test_facets.py
Lines 334 to 335 in 47eb885
It would be nice if you didn't have to separately instantiate a database object here.
The text was updated successfully, but these errors were encountered: