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

Reply via email to