call_end

    • Pl chevron_right

      Christian Hergert: pgsql-glib

      news.movim.eu / PlanetGnome • 7 days ago - 20:54

    Much like the s3-glib library I put together recently , I had another itch to scratch. What would it look like to have a PostgreSQL driver that used futures and fibers with libdex? This was something I wondered about more than a decade ago when writing the libmongoc network driver for 10gen (later MongoDB).

    pgsql-glib is such a library which I made to wrap the venerable libpq PostgreSQL state-machine library. It does operations on fibers and awaits FD I/O to make something that feels synchronous even though it is not.

    It also allows for something more “RAII-like” using g_autoptr() which interacts very nicely with fibers.

    API Documentation can be found here.