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

feat: create empty sqlite file if env flag is specified #19

Open
nya1 opened this issue Oct 19, 2022 · 0 comments
Open

feat: create empty sqlite file if env flag is specified #19

nya1 opened this issue Oct 19, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@nya1
Copy link
Owner

nya1 commented Oct 19, 2022

at the moment if you start scatola with a DATABASE_URL that points to a non-existent file prisma will throw the following error

Error: P1013: The provided database string is invalid. Error parsing connection string

we should create an empty sqlite file if the DATABASE_URL is defined and CREATE_EMPTY_DATABASE is true, for example with sqlite3 this can be accomplished with sqlite3 file.db "VACUUM;"

@nya1 nya1 added enhancement New feature or request good first issue Good for newcomers labels Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant