home / docs / sections

sections: internals:datasette-add-memory-database

This data as json

id page ref title content breadcrumbs references
internals:datasette-add-memory-database internals datasette-add-memory-database .add_memory_database(name) Adds a shared in-memory database with the specified name: datasette.add_memory_database("statistics") This is a shortcut for the following: from datasette.database import Database datasette.add_database( Database(datasette, memory_name="statistics") ) Using either of these pattern will result in the in-memory database being served at /statistics . ["Internals for plugins", "Datasette class"] []
Powered by Datasette · Queries took 2.845ms