D Embedded Database v0.1 Released

Dmitri via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Tue May 31 13:31:26 PDT 2016


On Saturday, 28 May 2016 at 14:08:18 UTC, Piotrek wrote:
> Short description
>
>     A database engine for quick and easy integration into any D 
> program. Full compatibility with D types and ranges.
>
> Design Goals (none is accomplished yet)
>
>     - ACID
>     - No external dependencies
>     - Single file storage
>     - Multithread support
>     - Suitable for microcontrollers
>
>
> Example code:
>
>     import draft.database;
>
>     import std.stdio;
>
>     void main(string[] args)
>     {
>         static struct Test
>         {
>             int a;
>             string s;
>         }
>
>         auto db = DataBase("testme.db");
>         auto collection = 
> db.collection!Test("collection_name",true);
>
>         collection.put(Test(1,"Hello DB"));
>
>
>         writeln(db.collection!Test("collection_name"));
>     }
>
>
> More info for interested at:
>
>     Docs:
>     
> https://gitlab.com/PiotrekDlang/DraftLib/blob/master/docs/database/index.md
>
>     Code:
>     https://gitlab.com/PiotrekDlang/DraftLib/tree/master/src
>
> The project is at its early stage of development.
>
> Piotrek

This might provide useful information if you're aiming for 
something like sqlite (hopefully not offtopic):

https://github.com/cznic/ql

It's an embeddable database engine in Go with goals similar to 
yours and at an advanced stage.

regards,
dmitri.


More information about the Digitalmars-d-announce mailing list