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

Configuration for SQLite #1

Closed
ghost opened this issue May 18, 2020 · 2 comments
Closed

Configuration for SQLite #1

ghost opened this issue May 18, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented May 18, 2020

What is the configuration for SQLite 3, I tried this one:

const db = new Database('sqlite3', { database: 'db.sqlite' });

But i got the next error:

error: TS2345 [ERROR]: Argument of type '{ database: string; }' is not assignable to parameter of type 'PostgresOptions | SQLite3Options | MySQLOptions'. Type '{ database: string; }' is missing the following properties from type 'MySQLOptions': host, username, password const db = new Database('sqlite3', {

@ghost
Copy link
Author

ghost commented May 18, 2020

I found the property

const db = new Database('sqlite3', { filepath: 'db.sqlite' });

@ghost ghost closed this as completed May 18, 2020
@eveningkid
Copy link
Owner

Good you managed to find the way.

I will update the readme on how to get started with each database client.

Do not hesitate to share feedback if anything comes up!

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

No branches or pull requests

1 participant