Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tr1ckydev/great.db
⚡ A powerful, human-friendly database library for JavaScript using SQLite.
https://github.com/tr1ckydev/great.db
database sqlite sqlite3 typescript
Last synced: about 11 hours ago
JSON representation
⚡ A powerful, human-friendly database library for JavaScript using SQLite.
- Host: GitHub
- URL: https://github.com/tr1ckydev/great.db
- Owner: tr1ckydev
- License: mit
- Created: 2022-09-12T14:41:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-04T12:01:39.000Z (over 1 year ago)
- Last Synced: 2025-01-07T13:05:23.901Z (12 days ago)
- Topics: database, sqlite, sqlite3, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/great.db
- Size: 288 KB
- Stars: 74
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![](res/logo.png)
# great.db
⚡ A powerful, human-friendly database library for JavaScript using SQLite. A completely different approach is taken to create this library which strives to change the way we use SQLite in JavaScript forever.
- Elegant way to set and retrieve data
- Robust functions to perform operations
- Complete typescript support## Bun? Deno? Node.js? We got all.
great.db uses [runtimey](https://github.com/tr1ckydev/runtimey) to automatically detect which runtime you are using and uses the respective fastest SQLite library available under the hood. One code base working differently on different runtimes to provide the best experience. Isn't that *great* ?
![](res/multiruntime.png)
> **Note:** When using great.db in Deno, `-A --unstable` flags need to be passed for `x/sqlite3` to work. [Learn more](https://github.com/denodrivers/sqlite3#usage).
## Documentation and Examples
Seems interesting? Great! Head over to the [documentation](DOCUMENTATION.md) to learn everything about it.
Done reading? Now, check out the [examples](https://github.com/tr1ckydev/great.db/tree/main/examples) to get started.
## Salient Features
- ### **Inserting/Updating data has never been easier**
Insert or update data with a breeze through simple objects, one or multiple. [Learn more](https://github.com/tr1ckydev/great.db/blob/main/DOCUMENTATION.md#set-----promisevoid).
![](res/setdata.png)
- ### **Use schemas to describe shape of your table**
Schema is a way to define how your table columns should be. Define your own schemas using various data types or use a built-in preset to quickly get started. [Learn more](https://github.com/tr1ckydev/great.db/blob/main/DOCUMENTATION.md#schema).
![](res/schema.png)
- ### **Strong typescript support out of the box**
Typescript types get auto magically inferred from the schema created to give auto-completions on the fly everywhere.
![](res/autocomplete.png)
## License
great.db uses MIT License. See [LICENSE](https://github.com/tr1ckydev/great.db/blob/main/LICENSE) for full license text. great.db also uses external libraries that are available under a variety of licenses.