Sqlite3 using gjs

How can one connect to a sqlite database using gjs? There is node-sqlite3, but I haven’t seen any examples of how to use that package using gjs.

You can use libgda; the GJS documentation is available on the gjs-docs website.

You cannot use node packages with GJS: they use two fundamentally different JavaScript VMs.

For some of them, it may be possible with a few adaptations, but it’s never going to be as simple as npm install some-package :smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.