Construct type-safe database queries in C11 using macro-based generic dispatch (_Generic).
- Opening an ORM handle with
cwist_orm_open_socket(fd)and closing it withcwist_orm_close_socket(orm). - Inserting and updating rows with
cwist_orm_insert(orm, table, data)andcwist_orm_update(orm, table, data, where). - Querying rows into a
cJSONresult withcwist_orm_query(orm, sql, &result).
mkdir build && cd build
cmake ..
make
./tut26