Skip to content

Database() constructor currently defaults is_mutable to False #1808

@simonw

Description

@simonw

This is surprising. It caused a bug in datasette-upload-dbs because I didn't expect it to do that.

I think this is an API design flaw in Datasette itself, but I can fix it here first.

Originally posted by @simonw in simonw/datasette-upload-dbs#6 (comment)

Code in question:

class Database:
def __init__(
self, ds, path=None, is_mutable=False, is_memory=False, memory_name=None
):

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions