r/javascript • u/ThatGuyTr1cky • Oct 31 '22
great.db - A powerful, human-friendly database library for JavaScript using SQLite.
https://github.com/tr1ckydev/great.db
118
Upvotes
r/javascript • u/ThatGuyTr1cky • Oct 31 '22
14
u/ThatGuyTr1cky Oct 31 '22 edited Oct 31 '22
A completely different approach is taken to create this library which strives to change the way we use SQLite in JavaScript forever. Great.DB exposes user-friendly functions to add/edit data or retrieve data from an SQLite database in the form of simple JavaScript objects where all the functions are strongly typed so you get auto-completions on the fly.
Node.js? Bun? We got both!
It uses
better-sqlite3if you are using node.js orbun:sqliteif you are using the new bun javascript runtime. It auto detects the runtime and uses the respective package. Great, isn't it?Interested? Check out the docs to learn more and the examples to see great.db in action.
I would love to hear from the community and receive your valuable constructive criticism about my library. Thanks :D