Skip to content

datasette.add_database(name, db) and datasette.remove_database(name) methods #671

@simonw

Description

@simonw
  • datasette.add_database(name, db) - adds a new named database to the list of connected databases. db will be a Database() object, which may prove useful in the future for things like Prototoype for Datasette on PostgreSQL #670 and could also allow some plugins to provide in-memory SQLite databases.
  • datasette.remove_database(name)

Originally posted by @simonw in #417 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions