hslayers-ng icon indicating copy to clipboard operation
hslayers-ng copied to clipboard

Review necessity of better-sqlite3 dependency

Open jmacura opened this issue 2 months ago • 1 comments

Feature Request

Is your feature request related to a problem? Please describe. Managing better-sqlite3 dependency is a tedious work as for each of its releases there is only a limited range of available compiled packages for specific Node and OS versions. Once one of those got too new or too old, better-sqlite3 must be compiled from source, which is even trickier job.

Describe the solution you'd like Revise if better-sqlite3 is necessary, i.e. if we need to use SQLite and SQL at all, or if a simple txt + search will do the trick as well.

Describe alternatives you've considered Search for alternative SQL/SQLite libraries, which do not require compiled sources.

Additional context Makes problems repeatedly. Last time in Liberecký kraj Geoportal (https://github.com/LESPROJEKT/lbc_geoportal/issues/29)

jmacura avatar Oct 28 '25 21:10 jmacura

Since Node 22 there is a native node package SQLite: https://nodejs.org/api/sqlite.html

jmacura avatar Oct 29 '25 01:10 jmacura