We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
create: true
Would be able to use the SQLite database import while also wanting the create: true behavior the current Database constructor exposes.
Database
import database from './db.sqlite' with { type: 'sqlite', create: true }; console.log(database.prepare(`SELECT sqlite_version()`).get());
Not doing it, people can always use the Database constructor.
The text was updated successfully, but these errors were encountered:
This makes sense, though we would have to make it “true” as a string, due to how import attributes works.
Sorry, something went wrong.
Yes please. Ideally should support any open flags supported by the Database constructor. E.g I'd also like readOnly.
and not sure if needs to be another issue, but expanding to these other options would be even better: #8178 (comment)
No branches or pull requests
What is the problem this feature would solve?
Would be able to use the SQLite database import while also wanting the
create: true
behavior the currentDatabase
constructor exposes.What is the feature you are proposing to solve the problem?
What alternatives have you considered?
Not doing it, people can always use the
Database
constructor.The text was updated successfully, but these errors were encountered: