kiwiirc / kiwibnc

Apache License 2.0
44 stars 14 forks source link

Bump knex to >= 1.0.1 and adapt src/libs/database.js so we can drop sqlite3 dependency #142

Closed mestaritonttu closed 1 year ago

mestaritonttu commented 2 years ago

knex supports better-sqlite3 starting from 1.0.1!

The currently used sqlite3 is bad, because it uses node-gyp version 3.x, which requires Python 2. In other words, KiwiBNC is currently in dependency hell :)

Here are the relevant docs for knex: https://github.com/knex/documentation/blob/8564d89988d553edd808211954fac0b784d63e66/sections/installation.js#L103-L130

Code modifications should be made to src/libs/database.js

ChristopherTheBoss commented 2 years ago

PLz fix <3 I am quasi zoomer trying to get into IRC, Kiwi seems friendly but idk about dependency hell