Thread: New wrapper library: QUINCE
Hi PostgreSQLers, I've released an open-source library called quince (QUeries In C++ Expressions) that helps you access PostgreSQL from C++. I know, I know: you've got plenty of those already, but this one is different ... It's an EDSL (Embedded Domain-Specific Language), which lets you build sophisticated SQL queries in C++ syntax with C++ data types, and it's also an ORM, which figures out how to represent your C++ structs/classes/tuples as multiple columns. It's a plain old library, so no special compiler and no code generation step. And fwiw it works with sqlite too (and maybe other DBMSes in the future -- it's a matter of adding backend libraries). It's all explained at http://quince-lib.com . Cheers, --- Michael Shepanski
A cool project!
Jov
blog: http:amutu.com/blog
2014-08-19 6:43 GMT+08:00 Michael Shepanski <mps@optusnet.com.au>:
Hi PostgreSQLers,
I've released an open-source library called quince (QUeries In C++ Expressions) that helps you access PostgreSQL from C++. I know, I know: you've got plenty of those already, but this one is different ...
It's an EDSL (Embedded Domain-Specific Language), which lets you build sophisticated SQL queries in C++ syntax with C++ data types, and it's also an ORM, which figures out how to represent your C++ structs/classes/tuples as multiple columns. It's a plain old library, so no special compiler and no code generation step. And fwiw it works with sqlite too (and maybe other DBMSes in the future -- it's a matter of adding backend libraries).
It's all explained at http://quince-lib.com .
Cheers,
--- Michael Shepanski
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
I'm not a C++ developer, but this looks like a really well-designed API. Nice work.
On Mon, Aug 18, 2014 at 9:21 PM, Jov <amutu@amutu.com> wrote:
A cool project!Jovblog: http:amutu.com/blog2014-08-19 6:43 GMT+08:00 Michael Shepanski <mps@optusnet.com.au>:Hi PostgreSQLers,
I've released an open-source library called quince (QUeries In C++ Expressions) that helps you access PostgreSQL from C++. I know, I know: you've got plenty of those already, but this one is different ...
It's an EDSL (Embedded Domain-Specific Language), which lets you build sophisticated SQL queries in C++ syntax with C++ data types, and it's also an ORM, which figures out how to represent your C++ structs/classes/tuples as multiple columns. It's a plain old library, so no special compiler and no code generation step. And fwiw it works with sqlite too (and maybe other DBMSes in the future -- it's a matter of adding backend libraries).
It's all explained at http://quince-lib.com .
Cheers,
--- Michael Shepanski
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
On 8/19/2014 5:31 AM, Larry White wrote: > I'm not a C++ developer, but this looks like a really well-designed > API. Nice work. really well designed method of generating really awful nested queries? whatever. -- john r pierce 37N 122W somewhere on the middle of the left coast
On 20/08/2014 3:51 AM, John R Pierce wrote: > > really well designed method of generating really awful nested > queries? whatever. Sure, if that's what you're into. As the doco says: How far you go in the direction of monster queries is up to you, the application designer. Quince has no opinion, but whatever you decide, quince allows you to express your choice in manageable C++. (quince-lib.com/queries_in_c_expressions/rise_of_the_monster_query.html) Cheers, --- Michael