[Buildroot] [PATCH 0/4] ODB: C++ Object-Relational Mapping (ORM): New packages.

Adam Duskett aduskett at gmail.com
Thu Dec 28 19:27:17 UTC 2017



ODB is an open-source, cross-platform, and cross-database object-relational
mapping (ORM) system for C++. It allows you to persist C++ objects to a
relational database without having to deal with tables, columns, or SQL and
without manually writing any mapping code. ODB supports MySQL, SQLite,
PostgreSQL, Oracle, and Microsoft SQL Server relational databases as well as
C++98/03 and C++11 language standards. It also comes with optional profiles for
Boost and Qt which allow you to seamlessly use value types, containers, and
smart pointers from these libraries in your persistent C++ classes.

There are three main components to use ODB (and a single dependency):
  - libcutl: This library is ODB's only dependency.
  - ODB: This is a compiler that takes a specially crafted c++ header file and
  		 auto-generates a schema that works with libodb and the subsequent
  		 libodb-database library.
  		 
  		 It would be used as such:
  		 odb -d <database> --generate-query --generate-schema file.hxx
 
  - libodb: This package contains the common ODB runtime library. Every
            application that includes code generated by the ODB compiler will
            need to link to this library.

  - libodb-pgsql: This package contains the PostgreSQL ODB runtime library.
				  Every application that includes code generated for the
				  PostgreSQL database will need to link to this library.

I am only providing libodb-pgsql as that is the only one I personally need.
There is also support for mysql, sqlite, mssql, and oracle as well.

Also boost and qt libraries are avaiable if anybody so wishes to add them.

Adam Duskett (4):
  libcutl: new package
  ODB: New package
  libodb: new package
  libodb-pgsql: new package

 DEVELOPERS                                         |   4 +
 package/Config.in                                  |   2 +
 package/libcutl/libcutl.hash                       |   6 +
 package/libcutl/libcutl.mk                         |  15 +
 package/libodb-pgsql/Config.in                     |  15 +
 package/libodb-pgsql/libodb-pgsql.hash             |   6 +
 package/libodb-pgsql/libodb-pgsql.mk               |  16 +
 package/libodb/Config.in                           |  12 +
 package/libodb/libodb.hash                         |   6 +
 package/libodb/libodb.mk                           |  16 +
 .../odb/0001-make-ODB-compatible-with-GCC-6.patch  | 327 +++++++++++++++++++++
 ...x-bug-in-GCC-6-input_location-translation.patch |  37 +++
 package/odb/odb.hash                               |   6 +
 package/odb/odb.mk                                 |  20 ++
 14 files changed, 488 insertions(+)
 create mode 100644 package/libcutl/libcutl.hash
 create mode 100644 package/libcutl/libcutl.mk
 create mode 100644 package/libodb-pgsql/Config.in
 create mode 100644 package/libodb-pgsql/libodb-pgsql.hash
 create mode 100644 package/libodb-pgsql/libodb-pgsql.mk
 create mode 100644 package/libodb/Config.in
 create mode 100644 package/libodb/libodb.hash
 create mode 100644 package/libodb/libodb.mk
 create mode 100644 package/odb/0001-make-ODB-compatible-with-GCC-6.patch
 create mode 100644 package/odb/0002-Fix-bug-in-GCC-6-input_location-translation.patch
 create mode 100644 package/odb/odb.hash
 create mode 100644 package/odb/odb.mk

-- 
2.14.3



More information about the buildroot mailing list