Unsupported driver used: Client_BetterSQLite3
See original GitHub issueEnvironment
Knex version: 1.0.1 Database + version: better-sqlite3, ^7.5.0, OS: ubuntu 20.04
Bug
-
I can’t start a connection with the
better-sqlite3
. -
Error message
/home/ozzy/Desktop/my-api/node_modules/knex-schema-inspector/dist/index.js:26
throw Error('Unsupported driver used: ' + knex.client.constructor.name);
^
Error: Unsupported driver used: Client_BetterSQLite3
- Example
const knex = require('knex')({
client: 'better-sqlite3',
connection: {
filename: "./mydb.sqlite"
}
});
Issue Analytics
- State:
- Created 2 years ago
- Comments:8
Top Results From Across the Web
better-sqlite3 - npm
The fastest and simplest library for SQLite3 in Node.js. Full transaction support; High performance, efficiency, and safety; Easy-to-use ...
Read more >Error installing sqlite3 in node.js - Stack Overflow
Failed at the sqlite3@3.1.8 install script 'node-pre-gyp install --fallback-to-build'. npm ERR! This is most likely a problem with the sqlite3 ...
Read more >Unsupported driver [file]. - Laracasts
I am facing the issue of the unsupported driver while hitting my API I have the following configurations in my config/database.php. Copy Code...
Read more >sqlite3 — DB-API 2.0 interface for SQLite databases — Python ...
SQLite is a C library that provides a lightweight disk-based database that doesn't require a separate server process and allows accessing the database...
Read more >SQLite on Heroku
PostgreSQL database can be used by any language and framework, this section covers how to connect to it through the Ruby on Rails...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s an knex-schema-inspector issue : https://github.com/knex/knex-schema-inspector/issues/94 with a corresponding issue : https://github.com/knex/knex-schema-inspector/pull/95
@kibertoad I don’t think we’re doing anything that’s specific to
node-sqlite
in there, so adding support might be as easy as extending:https://github.com/knex/knex-schema-inspector/blob/b0af557df44a77abdbda7137253b512b79b5cacb/lib/index.ts#L17-L19
to