How can i use TypeORM with better-sqlite3?
on the official documentation, there is a section form better-sqlite3.
I already installed by typeorm@latest
and typeorm@next
but there is no options for better-sqlite3 yet.
If i try to force initialize it, i got the following error
MissingDriverError: Wrong driver: "better-sqlite3" given. Supported drivers are: "cordova", "expo", "mariadb", "mongodb", "mssql", "mysql", "oracle", "postgres", "sqlite", "sqljs", "react-native", "aurora-data-api", "aurora-data-api-pg".
The
better-sqlite3
driver was added in[email protected]
.typeorm
to0.2.26
or higher.better-sqlite3
.sqlite3
can be uninstalled.ormconfig.json
change the type to"type": "better-sqlite3",