Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gustavohennig/simpledbquerybuilder

A very simply, lightweight, and fast SQL builder with detached request and responses.
https://github.com/gustavohennig/simpledbquerybuilder

net- orm postgresql sql-builder sqlite

Last synced: about 10 hours ago
JSON representation

A very simply, lightweight, and fast SQL builder with detached request and responses.

Awesome Lists containing this project

README

        


### Simple Database Query Builder

This is a Simple Database **Query Builder** with **Migrations** and **Pooling**.

Initially designed for **Sqlite** but can be used with other databases.

The goal is to be extremely simple, and to use **lightweight** data structures to manipulate in memory.

#### How it works
Using the patter Producer/Consumer, all queries are put int a queue,
then a single thread is responsible to execute each command.
It is optimized for SQLite, running batch operations inside a transaction.

#### Known issues

`DbQueue` implementation is problematic, if an error occurs, all transaction commands will be lost.

#### Things to do
- [ ] Unit tests;
- [ ] Refactor `BaseDbConn` and `DbQueue` to respect the single-responsibility principle.
- [ ] Organize folder/namespaces
- [ ] Fix DbQueue reliability problem

#### Do not forget
- SOLID is nice, but KISS is what guides this project :)