3 ms·
I'll write more about it later, but silicon actually has a nice way to deal with databases. It currently only support sqlite, but it has: - a sqlite middleware
by matt42 12y ago
I'll write more about it later, but silicon actually has a nice way to deal with databases. It currently only support sqlite, but it has:
- a sqlite middleware: See the example here: https://github.com/matt-42/silicon#middlewares https://github.com/matt-42/silicon#middlewares
- a sqlite ORM middleware: https://github.com/matt-42/silicon/blob/master/silicon/sqlite_orm.hh https://github.com/matt-42/silicon/blob/master/silicon/sqlit...
- a generic CRUD implementation (relying on the ORM):
https://github.com/matt-42/silicon/blob/master/tests/crud.cc https://github.com/matt-42/silicon/blob/master/tests/crud.cc
The mysql, redis, postgresql equivalents will come soon.
- Yadi 12y agoThat is pretty awesome! Something for postgresql would be great. My stack heavily relies on pg and the other ORMs performance have been disappointing, I need to use something like this.