Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] immutable mode for a directory, not just individual sqlite file #1706

Open
hydrosquall opened this issue Apr 10, 2022 · 4 comments

Comments

@hydrosquall
Copy link
Contributor

Motivation

  • I have a directory of sqlite databases

  • I'd like to use immutable mode when opening them for better performance docs

  • Currently using this flag throws the following error

    IsADirectoryError: [Errno 21] Is a directory: '/name-of-directory'

Proposal

Immutable flag works for both single files and directories

datasette -i /folder-of-sqlite-files
@simonw
Copy link
Owner

simonw commented Apr 10, 2022

This is a good idea - it matches the way datasette . works for mutable database files already.

@simonw
Copy link
Owner

simonw commented Apr 10, 2022

This relates to this much larger vision:

@ar-jan
Copy link

ar-jan commented Nov 23, 2022

This would be helpful.

@rdmurphy
Copy link

rdmurphy commented Dec 9, 2022

Ah, yes! Was just trying to do this and had the same issue. +1 to this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants