├── .gitattributes ├── .gitignore ├── GPLv2 ├── GPLv3 ├── LICENSE ├── NCUEL ├── NEWS ├── PACKAGE-README.md ├── README.md ├── UNLICENSE ├── buildfile ├── libodb-boost ├── .gitignore ├── GPLv2 ├── LICENSE ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── manifest ├── odb │ ├── boost.options │ └── boost │ │ ├── buildfile │ │ ├── date-time.options │ │ ├── date-time │ │ ├── exceptions.cxx │ │ ├── exceptions.hxx │ │ ├── gregorian-common.options │ │ ├── gregorian-mssql.options │ │ ├── gregorian-mysql.options │ │ ├── gregorian-oracle.options │ │ ├── gregorian-pgsql.options │ │ ├── gregorian-sqlite.options │ │ ├── mssql │ │ │ ├── gregorian-mapping.hxx │ │ │ ├── gregorian-traits.hxx │ │ │ ├── posix-time-mapping.hxx │ │ │ └── posix-time-traits.hxx │ │ ├── mysql │ │ │ ├── gregorian-mapping.hxx │ │ │ ├── gregorian-traits.hxx │ │ │ ├── posix-time-mapping.hxx │ │ │ └── posix-time-traits.hxx │ │ ├── oracle │ │ │ ├── gregorian-mapping.hxx │ │ │ ├── gregorian-traits.hxx │ │ │ ├── posix-time-mapping.hxx │ │ │ └── posix-time-traits.hxx │ │ ├── pgsql │ │ │ ├── gregorian-mapping.hxx │ │ │ ├── gregorian-traits.hxx │ │ │ ├── posix-time-mapping.hxx │ │ │ └── posix-time-traits.hxx │ │ ├── posix-time-common.options │ │ ├── posix-time-mssql.options │ │ ├── posix-time-mysql.options │ │ ├── posix-time-oracle.options │ │ ├── posix-time-pgsql.options │ │ ├── posix-time-sqlite.options │ │ └── sqlite │ │ │ ├── gregorian-mapping.hxx │ │ │ ├── gregorian-traits.hxx │ │ │ ├── posix-time-mapping.hxx │ │ │ └── posix-time-traits.hxx │ │ ├── details │ │ ├── config.hxx │ │ └── export.hxx │ │ ├── exception.hxx │ │ ├── lazy-ptr.hxx │ │ ├── multi-index.options │ │ ├── multi-index │ │ └── container-traits.hxx │ │ ├── optional.options │ │ ├── optional │ │ └── wrapper-traits.hxx │ │ ├── smart-ptr.options │ │ ├── smart-ptr │ │ ├── lazy-pointer-traits.hxx │ │ ├── lazy-ptr.hxx │ │ ├── lazy-ptr.ixx │ │ ├── lazy-ptr.txx │ │ ├── pointer-traits.hxx │ │ └── wrapper-traits.hxx │ │ ├── unordered.options │ │ ├── unordered │ │ └── container-traits.hxx │ │ ├── uuid.options │ │ ├── uuid │ │ ├── mssql │ │ │ ├── uuid-mapping.hxx │ │ │ └── uuid-traits.hxx │ │ ├── mysql │ │ │ ├── uuid-mapping.hxx │ │ │ └── uuid-traits.hxx │ │ ├── oracle │ │ │ ├── uuid-mapping.hxx │ │ │ └── uuid-traits.hxx │ │ ├── pgsql │ │ │ ├── uuid-mapping.hxx │ │ │ └── uuid-traits.hxx │ │ ├── sqlite │ │ │ ├── uuid-mapping.hxx │ │ │ └── uuid-traits.hxx │ │ ├── uuid-common.options │ │ ├── uuid-mssql.options │ │ ├── uuid-mysql.options │ │ ├── uuid-oracle.options │ │ ├── uuid-pgsql.options │ │ └── uuid-sqlite.options │ │ ├── version.hxx │ │ ├── version.hxx.in │ │ └── version.options └── tests │ ├── .gitignore │ ├── basics │ ├── buildfile │ └── driver.cxx │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ └── buildfile ├── libodb-mssql ├── .gitignore ├── LICENSE ├── NCUEL ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── manifest ├── odb │ └── mssql │ │ ├── auto-handle.cxx │ │ ├── auto-handle.hxx │ │ ├── binding.hxx │ │ ├── buildfile │ │ ├── connection-factory.cxx │ │ ├── connection-factory.hxx │ │ ├── connection.cxx │ │ ├── connection.hxx │ │ ├── connection.ixx │ │ ├── container-statements.hxx │ │ ├── container-statements.txx │ │ ├── database.cxx │ │ ├── database.hxx │ │ ├── database.ixx │ │ ├── details │ │ ├── .gitignore │ │ ├── config.hxx │ │ ├── conversion.hxx │ │ ├── export.hxx │ │ ├── options.cli │ │ └── pregenerated │ │ │ └── odb │ │ │ └── mssql │ │ │ └── details │ │ │ ├── options.cxx │ │ │ ├── options.hxx │ │ │ └── options.ixx │ │ ├── error.cxx │ │ ├── error.hxx │ │ ├── exceptions.cxx │ │ ├── exceptions.hxx │ │ ├── forward.hxx │ │ ├── mssql-fwd.hxx │ │ ├── mssql-types.hxx │ │ ├── mssql.hxx │ │ ├── no-id-object-result.hxx │ │ ├── no-id-object-result.txx │ │ ├── no-id-object-statements.hxx │ │ ├── no-id-object-statements.txx │ │ ├── polymorphic-object-result.hxx │ │ ├── polymorphic-object-result.txx │ │ ├── polymorphic-object-statements.hxx │ │ ├── polymorphic-object-statements.txx │ │ ├── prepared-query.cxx │ │ ├── prepared-query.hxx │ │ ├── query-const-expr.cxx │ │ ├── query-dynamic.cxx │ │ ├── query-dynamic.hxx │ │ ├── query-dynamic.ixx │ │ ├── query-dynamic.txx │ │ ├── query.cxx │ │ ├── query.hxx │ │ ├── query.ixx │ │ ├── query.txx │ │ ├── section-statements.hxx │ │ ├── section-statements.txx │ │ ├── simple-object-result.hxx │ │ ├── simple-object-result.txx │ │ ├── simple-object-statements.cxx │ │ ├── simple-object-statements.hxx │ │ ├── simple-object-statements.ixx │ │ ├── simple-object-statements.txx │ │ ├── statement-cache.hxx │ │ ├── statement-cache.txx │ │ ├── statement-processing.cxx │ │ ├── statement.cxx │ │ ├── statement.hxx │ │ ├── statement.ixx │ │ ├── statements-base.cxx │ │ ├── statements-base.hxx │ │ ├── tracer.cxx │ │ ├── tracer.hxx │ │ ├── traits-calls.hxx │ │ ├── traits.cxx │ │ ├── traits.hxx │ │ ├── traits.txx │ │ ├── transaction-impl.cxx │ │ ├── transaction-impl.hxx │ │ ├── transaction.cxx │ │ ├── transaction.hxx │ │ ├── transaction.ixx │ │ ├── version.hxx │ │ ├── version.hxx.in │ │ ├── view-result.hxx │ │ ├── view-result.txx │ │ ├── view-statements.hxx │ │ └── view-statements.txx └── tests │ ├── .gitignore │ ├── basics │ ├── buildfile │ └── driver.cxx │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ └── buildfile ├── libodb-mysql ├── .gitignore ├── GPLv2 ├── LICENSE ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── manifest ├── odb │ └── mysql │ │ ├── auto-handle.hxx │ │ ├── binding.hxx │ │ ├── buildfile │ │ ├── connection-factory.cxx │ │ ├── connection-factory.hxx │ │ ├── connection.cxx │ │ ├── connection.hxx │ │ ├── connection.ixx │ │ ├── container-statements.hxx │ │ ├── container-statements.txx │ │ ├── database.cxx │ │ ├── database.hxx │ │ ├── database.ixx │ │ ├── details │ │ ├── .gitignore │ │ ├── config-vc.h │ │ ├── config.h.in │ │ ├── config.hxx │ │ ├── conversion.hxx │ │ ├── export.hxx │ │ ├── options.cli │ │ └── pregenerated │ │ │ └── odb │ │ │ └── mysql │ │ │ └── details │ │ │ ├── options.cxx │ │ │ ├── options.hxx │ │ │ └── options.ixx │ │ ├── enum.cxx │ │ ├── enum.hxx │ │ ├── error.cxx │ │ ├── error.hxx │ │ ├── exceptions.cxx │ │ ├── exceptions.hxx │ │ ├── forward.hxx │ │ ├── mysql-types.hxx │ │ ├── mysql.hxx │ │ ├── no-id-object-result.hxx │ │ ├── no-id-object-result.txx │ │ ├── no-id-object-statements.hxx │ │ ├── no-id-object-statements.txx │ │ ├── polymorphic-object-result.hxx │ │ ├── polymorphic-object-result.txx │ │ ├── polymorphic-object-statements.hxx │ │ ├── polymorphic-object-statements.txx │ │ ├── prepared-query.cxx │ │ ├── prepared-query.hxx │ │ ├── query-const-expr.cxx │ │ ├── query-dynamic.cxx │ │ ├── query-dynamic.hxx │ │ ├── query-dynamic.ixx │ │ ├── query-dynamic.txx │ │ ├── query.cxx │ │ ├── query.hxx │ │ ├── query.ixx │ │ ├── query.txx │ │ ├── section-statements.hxx │ │ ├── section-statements.txx │ │ ├── simple-object-result.hxx │ │ ├── simple-object-result.txx │ │ ├── simple-object-statements.cxx │ │ ├── simple-object-statements.hxx │ │ ├── simple-object-statements.ixx │ │ ├── simple-object-statements.txx │ │ ├── statement-cache.hxx │ │ ├── statement-cache.txx │ │ ├── statement.cxx │ │ ├── statement.hxx │ │ ├── statements-base.cxx │ │ ├── statements-base.hxx │ │ ├── tracer.cxx │ │ ├── tracer.hxx │ │ ├── traits-calls.hxx │ │ ├── traits.cxx │ │ ├── traits.hxx │ │ ├── transaction-impl.cxx │ │ ├── transaction-impl.hxx │ │ ├── transaction.cxx │ │ ├── transaction.hxx │ │ ├── transaction.ixx │ │ ├── version.hxx │ │ ├── version.hxx.in │ │ ├── view-result.hxx │ │ ├── view-result.txx │ │ ├── view-statements.hxx │ │ └── view-statements.txx └── tests │ ├── .gitignore │ ├── basics │ ├── buildfile │ └── driver.cxx │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ └── buildfile ├── libodb-oracle ├── .gitignore ├── LICENSE ├── NCUEL ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── manifest ├── odb │ └── oracle │ │ ├── auto-descriptor.cxx │ │ ├── auto-descriptor.hxx │ │ ├── auto-handle.cxx │ │ ├── auto-handle.hxx │ │ ├── binding.hxx │ │ ├── buildfile │ │ ├── connection-factory.cxx │ │ ├── connection-factory.hxx │ │ ├── connection.cxx │ │ ├── connection.hxx │ │ ├── connection.ixx │ │ ├── container-statements.hxx │ │ ├── container-statements.txx │ │ ├── database.cxx │ │ ├── database.hxx │ │ ├── database.ixx │ │ ├── details │ │ ├── .gitignore │ │ ├── config.hxx │ │ ├── conversion.hxx │ │ ├── date.hxx │ │ ├── export.hxx │ │ ├── number.cxx │ │ ├── number.hxx │ │ ├── options.cli │ │ └── pregenerated │ │ │ └── odb │ │ │ └── oracle │ │ │ └── details │ │ │ ├── options.cxx │ │ │ ├── options.hxx │ │ │ └── options.ixx │ │ ├── error.cxx │ │ ├── error.hxx │ │ ├── exceptions.cxx │ │ ├── exceptions.hxx │ │ ├── forward.hxx │ │ ├── no-id-object-result.hxx │ │ ├── no-id-object-result.txx │ │ ├── no-id-object-statements.hxx │ │ ├── no-id-object-statements.txx │ │ ├── oracle-fwd.hxx │ │ ├── oracle-types.cxx │ │ ├── oracle-types.hxx │ │ ├── polymorphic-object-result.hxx │ │ ├── polymorphic-object-result.txx │ │ ├── polymorphic-object-statements.hxx │ │ ├── polymorphic-object-statements.txx │ │ ├── prepared-query.cxx │ │ ├── prepared-query.hxx │ │ ├── query-const-expr.cxx │ │ ├── query-dynamic.cxx │ │ ├── query-dynamic.hxx │ │ ├── query-dynamic.ixx │ │ ├── query-dynamic.txx │ │ ├── query.cxx │ │ ├── query.hxx │ │ ├── query.ixx │ │ ├── query.txx │ │ ├── section-statements.hxx │ │ ├── section-statements.txx │ │ ├── simple-object-result.hxx │ │ ├── simple-object-result.txx │ │ ├── simple-object-statements.cxx │ │ ├── simple-object-statements.hxx │ │ ├── simple-object-statements.ixx │ │ ├── simple-object-statements.txx │ │ ├── statement-cache.hxx │ │ ├── statement-cache.txx │ │ ├── statement.cxx │ │ ├── statement.hxx │ │ ├── statement.ixx │ │ ├── statements-base.cxx │ │ ├── statements-base.hxx │ │ ├── tracer.cxx │ │ ├── tracer.hxx │ │ ├── traits-calls.hxx │ │ ├── traits.cxx │ │ ├── traits.hxx │ │ ├── traits.txx │ │ ├── transaction-impl.cxx │ │ ├── transaction-impl.hxx │ │ ├── transaction.cxx │ │ ├── transaction.hxx │ │ ├── transaction.ixx │ │ ├── version.hxx │ │ ├── version.hxx.in │ │ ├── view-result.hxx │ │ ├── view-result.txx │ │ ├── view-statements.hxx │ │ └── view-statements.txx └── tests │ ├── .gitignore │ ├── basics │ ├── buildfile │ └── driver.cxx │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ └── buildfile ├── libodb-pgsql ├── .gitignore ├── GPLv2 ├── LICENSE ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── manifest ├── odb │ └── pgsql │ │ ├── auto-handle.cxx │ │ ├── auto-handle.hxx │ │ ├── binding.hxx │ │ ├── buildfile │ │ ├── connection-factory.cxx │ │ ├── connection-factory.hxx │ │ ├── connection.cxx │ │ ├── connection.hxx │ │ ├── connection.ixx │ │ ├── container-statements.hxx │ │ ├── container-statements.txx │ │ ├── database.cxx │ │ ├── database.hxx │ │ ├── database.ixx │ │ ├── details │ │ ├── .gitignore │ │ ├── config.hxx │ │ ├── conversion.hxx │ │ ├── endian-traits.hxx │ │ ├── export.hxx │ │ ├── options.cli │ │ └── pregenerated │ │ │ └── odb │ │ │ └── pgsql │ │ │ └── details │ │ │ ├── options.cxx │ │ │ ├── options.hxx │ │ │ └── options.ixx │ │ ├── error.cxx │ │ ├── error.hxx │ │ ├── error.ixx │ │ ├── exceptions.cxx │ │ ├── exceptions.hxx │ │ ├── forward.hxx │ │ ├── no-id-object-result.hxx │ │ ├── no-id-object-result.txx │ │ ├── no-id-object-statements.hxx │ │ ├── no-id-object-statements.txx │ │ ├── pgsql-fwd.hxx │ │ ├── pgsql-oid.hxx │ │ ├── pgsql-types.hxx │ │ ├── polymorphic-object-result.hxx │ │ ├── polymorphic-object-result.txx │ │ ├── polymorphic-object-statements.hxx │ │ ├── polymorphic-object-statements.txx │ │ ├── prepared-query.cxx │ │ ├── prepared-query.hxx │ │ ├── query-const-expr.cxx │ │ ├── query-dynamic.cxx │ │ ├── query-dynamic.hxx │ │ ├── query-dynamic.ixx │ │ ├── query-dynamic.txx │ │ ├── query.cxx │ │ ├── query.hxx │ │ ├── query.ixx │ │ ├── query.txx │ │ ├── section-statements.hxx │ │ ├── section-statements.txx │ │ ├── simple-object-result.hxx │ │ ├── simple-object-result.txx │ │ ├── simple-object-statements.cxx │ │ ├── simple-object-statements.hxx │ │ ├── simple-object-statements.ixx │ │ ├── simple-object-statements.txx │ │ ├── statement-cache.hxx │ │ ├── statement-cache.txx │ │ ├── statement.cxx │ │ ├── statement.hxx │ │ ├── statements-base.cxx │ │ ├── statements-base.hxx │ │ ├── tracer.cxx │ │ ├── tracer.hxx │ │ ├── traits-calls.hxx │ │ ├── traits.cxx │ │ ├── traits.hxx │ │ ├── transaction-impl.cxx │ │ ├── transaction-impl.hxx │ │ ├── transaction.cxx │ │ ├── transaction.hxx │ │ ├── transaction.ixx │ │ ├── version.hxx │ │ ├── version.hxx.in │ │ ├── view-result.hxx │ │ ├── view-result.txx │ │ ├── view-statements.hxx │ │ └── view-statements.txx └── tests │ ├── .gitignore │ ├── basics │ ├── buildfile │ └── driver.cxx │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ └── buildfile ├── libodb-qt ├── .gitignore ├── GPLv2 ├── LICENSE ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── manifest ├── odb │ ├── qt.options │ └── qt │ │ ├── basic.options │ │ ├── basic │ │ ├── basic-common.options │ │ ├── basic-mssql.options │ │ ├── basic-mysql.options │ │ ├── basic-oracle.options │ │ ├── basic-pgsql.options │ │ ├── basic-sqlite.options │ │ ├── mssql │ │ │ ├── default-mapping.hxx │ │ │ ├── qbyte-array-traits.hxx │ │ │ ├── qstring-traits.hxx │ │ │ └── quuid-traits.hxx │ │ ├── mysql │ │ │ ├── default-mapping.hxx │ │ │ ├── qbyte-array-traits.hxx │ │ │ ├── qstring-traits.hxx │ │ │ └── quuid-traits.hxx │ │ ├── oracle │ │ │ ├── default-mapping.hxx │ │ │ ├── qbyte-array-traits.hxx │ │ │ ├── qstring-traits.hxx │ │ │ └── quuid-traits.hxx │ │ ├── pgsql │ │ │ ├── default-mapping.hxx │ │ │ ├── qbyte-array-traits.hxx │ │ │ ├── qstring-traits.hxx │ │ │ └── quuid-traits.hxx │ │ └── sqlite │ │ │ ├── default-mapping.hxx │ │ │ ├── qbyte-array-traits.hxx │ │ │ ├── qstring-traits.hxx │ │ │ └── quuid-traits.hxx │ │ ├── buildfile │ │ ├── containers.options │ │ ├── containers │ │ ├── list-iterator.hxx │ │ ├── list-traits.hxx │ │ ├── list-traits.txx │ │ ├── list.hxx │ │ ├── list.ixx │ │ ├── mutable-list-iterator.hxx │ │ ├── qhash-traits.hxx │ │ ├── qlinked-list-traits.hxx │ │ ├── qlist-traits.hxx │ │ ├── qmap-traits.hxx │ │ ├── qset-traits.hxx │ │ └── qvector-traits.hxx │ │ ├── date-time.options │ │ ├── date-time │ │ ├── date-time-common.options │ │ ├── date-time-mssql.options │ │ ├── date-time-mysql.options │ │ ├── date-time-oracle.options │ │ ├── date-time-pgsql.options │ │ ├── date-time-sqlite.options │ │ ├── exceptions.cxx │ │ ├── exceptions.hxx │ │ ├── mssql │ │ │ ├── default-mapping.hxx │ │ │ ├── qdate-time-traits.hxx │ │ │ ├── qdate-traits.hxx │ │ │ └── qtime-traits.hxx │ │ ├── mysql │ │ │ ├── default-mapping.hxx │ │ │ ├── qdate-time-traits.hxx │ │ │ ├── qdate-traits.hxx │ │ │ └── qtime-traits.hxx │ │ ├── oracle │ │ │ ├── default-mapping.hxx │ │ │ ├── qdate-time-traits.hxx │ │ │ ├── qdate-traits.hxx │ │ │ └── qtime-traits.hxx │ │ ├── pgsql │ │ │ ├── default-mapping.hxx │ │ │ ├── qdate-time-traits.hxx │ │ │ ├── qdate-traits.hxx │ │ │ └── qtime-traits.hxx │ │ └── sqlite │ │ │ ├── default-mapping.hxx │ │ │ ├── qdate-time-traits.hxx │ │ │ ├── qdate-traits.hxx │ │ │ └── qtime-traits.hxx │ │ ├── details │ │ ├── config.hxx │ │ └── export.hxx │ │ ├── exception.hxx │ │ ├── lazy-ptr.hxx │ │ ├── list-iterator.hxx │ │ ├── list.hxx │ │ ├── mutable-list-iterator.hxx │ │ ├── smart-ptr.options │ │ ├── smart-ptr │ │ ├── lazy-pointer-traits.hxx │ │ ├── lazy-ptr.hxx │ │ ├── lazy-ptr.ixx │ │ ├── lazy-ptr.txx │ │ ├── pointer-traits.hxx │ │ └── wrapper-traits.hxx │ │ ├── version.hxx │ │ ├── version.hxx.in │ │ └── version.options └── tests │ ├── .gitignore │ ├── basics │ ├── buildfile │ └── driver.cxx │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ └── buildfile ├── libodb-sqlite ├── .gitignore ├── GPLv2 ├── LICENSE ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── manifest ├── odb │ └── sqlite │ │ ├── auto-handle.hxx │ │ ├── binding.hxx │ │ ├── blob-stream.hxx │ │ ├── blob.hxx │ │ ├── buildfile │ │ ├── connection-factory.cxx │ │ ├── connection-factory.hxx │ │ ├── connection.cxx │ │ ├── connection.hxx │ │ ├── connection.ixx │ │ ├── container-statements.hxx │ │ ├── container-statements.txx │ │ ├── database.cxx │ │ ├── database.hxx │ │ ├── database.ixx │ │ ├── details │ │ ├── .gitignore │ │ ├── config.hxx │ │ ├── conversion.hxx │ │ ├── export.hxx │ │ ├── options.cli │ │ └── pregenerated │ │ │ └── odb │ │ │ └── sqlite │ │ │ └── details │ │ │ ├── options.cxx │ │ │ ├── options.hxx │ │ │ └── options.ixx │ │ ├── error.cxx │ │ ├── error.hxx │ │ ├── exceptions.cxx │ │ ├── exceptions.hxx │ │ ├── forward.hxx │ │ ├── no-id-object-result.hxx │ │ ├── no-id-object-result.txx │ │ ├── no-id-object-statements.hxx │ │ ├── no-id-object-statements.txx │ │ ├── polymorphic-object-result.hxx │ │ ├── polymorphic-object-result.txx │ │ ├── polymorphic-object-statements.hxx │ │ ├── polymorphic-object-statements.txx │ │ ├── prepared-query.cxx │ │ ├── prepared-query.hxx │ │ ├── query-const-expr.cxx │ │ ├── query-dynamic.cxx │ │ ├── query-dynamic.hxx │ │ ├── query-dynamic.ixx │ │ ├── query-dynamic.txx │ │ ├── query.cxx │ │ ├── query.hxx │ │ ├── query.ixx │ │ ├── query.txx │ │ ├── section-statements.hxx │ │ ├── section-statements.txx │ │ ├── simple-object-result.hxx │ │ ├── simple-object-result.txx │ │ ├── simple-object-statements.cxx │ │ ├── simple-object-statements.hxx │ │ ├── simple-object-statements.ixx │ │ ├── simple-object-statements.txx │ │ ├── sqlite-types.hxx │ │ ├── statement-cache.hxx │ │ ├── statement-cache.txx │ │ ├── statement.cxx │ │ ├── statement.hxx │ │ ├── statements-base.cxx │ │ ├── statements-base.hxx │ │ ├── stream.cxx │ │ ├── stream.hxx │ │ ├── text-stream.hxx │ │ ├── text.hxx │ │ ├── tracer.cxx │ │ ├── tracer.hxx │ │ ├── traits-calls.hxx │ │ ├── traits.cxx │ │ ├── traits.hxx │ │ ├── transaction-impl.cxx │ │ ├── transaction-impl.hxx │ │ ├── transaction.cxx │ │ ├── transaction.hxx │ │ ├── transaction.ixx │ │ ├── version.hxx │ │ ├── version.hxx.in │ │ ├── view-result.hxx │ │ ├── view-result.txx │ │ ├── view-statements.hxx │ │ └── view-statements.txx └── tests │ ├── .gitignore │ ├── basics │ ├── buildfile │ └── driver.cxx │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ └── buildfile ├── libodb ├── .gitignore ├── GPLv2 ├── LICENSE ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── manifest ├── odb │ ├── buildfile │ ├── c-array-traits.hxx │ ├── cache-traits.hxx │ ├── callback.hxx │ ├── connection.cxx │ ├── connection.hxx │ ├── connection.ixx │ ├── connection.txx │ ├── container-traits.hxx │ ├── core.hxx │ ├── database.cxx │ ├── database.hxx │ ├── database.ixx │ ├── database.txx │ ├── details │ │ ├── buffer.cxx │ │ ├── buffer.hxx │ │ ├── c-string.hxx │ │ ├── condition.cxx │ │ ├── condition.hxx │ │ ├── config-vc.h │ │ ├── config.h │ │ ├── config.hxx │ │ ├── exception.hxx │ │ ├── export.hxx │ │ ├── function-wrapper.hxx │ │ ├── function-wrapper.ixx │ │ ├── function-wrapper.txx │ │ ├── lock.cxx │ │ ├── lock.hxx │ │ ├── meta │ │ │ ├── answer.hxx │ │ │ ├── class-p.hxx │ │ │ ├── polymorphic-p.hxx │ │ │ ├── remove-const-volatile.hxx │ │ │ ├── remove-const.hxx │ │ │ ├── remove-pointer.hxx │ │ │ ├── remove-volatile.hxx │ │ │ └── static-assert.hxx │ │ ├── mutex.cxx │ │ ├── mutex.hxx │ │ ├── posix │ │ │ ├── condition.hxx │ │ │ ├── condition.ixx │ │ │ ├── exceptions.cxx │ │ │ ├── exceptions.hxx │ │ │ ├── mutex.hxx │ │ │ ├── mutex.ixx │ │ │ ├── thread.cxx │ │ │ ├── thread.hxx │ │ │ ├── thread.ixx │ │ │ ├── tls.hxx │ │ │ ├── tls.ixx │ │ │ └── tls.txx │ │ ├── shared-ptr-fwd.hxx │ │ ├── shared-ptr.hxx │ │ ├── shared-ptr │ │ │ ├── base.cxx │ │ │ ├── base.hxx │ │ │ ├── base.ixx │ │ │ ├── base.txx │ │ │ ├── counter-type.hxx │ │ │ └── exception.hxx │ │ ├── thread.cxx │ │ ├── thread.hxx │ │ ├── tls.hxx │ │ ├── transfer-ptr.hxx │ │ ├── type-info.hxx │ │ ├── unique-ptr.hxx │ │ ├── unused.hxx │ │ ├── win32 │ │ │ ├── condition.cxx │ │ │ ├── condition.hxx │ │ │ ├── condition.ixx │ │ │ ├── dll.cxx │ │ │ ├── exceptions.cxx │ │ │ ├── exceptions.hxx │ │ │ ├── init.cxx │ │ │ ├── init.hxx │ │ │ ├── lock.hxx │ │ │ ├── mutex.hxx │ │ │ ├── mutex.ixx │ │ │ ├── once-init.hxx │ │ │ ├── once.cxx │ │ │ ├── once.hxx │ │ │ ├── once.ixx │ │ │ ├── thread.cxx │ │ │ ├── thread.hxx │ │ │ ├── tls-init.hxx │ │ │ ├── tls.cxx │ │ │ ├── tls.hxx │ │ │ ├── tls.ixx │ │ │ ├── tls.txx │ │ │ └── windows.hxx │ │ └── wrapper-p.hxx │ ├── exception.hxx │ ├── exceptions.cxx │ ├── exceptions.hxx │ ├── forward.hxx │ ├── function-table.hxx │ ├── lazy-pointer-traits.hxx │ ├── lazy-ptr-impl.hxx │ ├── lazy-ptr-impl.ixx │ ├── lazy-ptr-impl.txx │ ├── lazy-ptr.hxx │ ├── lazy-ptr.ixx │ ├── lazy-ptr.txx │ ├── nested-container.hxx │ ├── no-id-object-result.hxx │ ├── no-id-object-result.txx │ ├── no-op-cache-traits.hxx │ ├── nullable.hxx │ ├── object-result.hxx │ ├── pointer-traits.hxx │ ├── polymorphic-info.hxx │ ├── polymorphic-map.hxx │ ├── polymorphic-map.ixx │ ├── polymorphic-map.txx │ ├── polymorphic-object-result.hxx │ ├── polymorphic-object-result.txx │ ├── post.hxx │ ├── pre.hxx │ ├── prepared-query.cxx │ ├── prepared-query.hxx │ ├── query-dynamic.cxx │ ├── query-dynamic.hxx │ ├── query-dynamic.ixx │ ├── query-dynamic.txx │ ├── query.hxx │ ├── result.cxx │ ├── result.hxx │ ├── result.txx │ ├── schema-catalog-impl.hxx │ ├── schema-catalog.cxx │ ├── schema-catalog.hxx │ ├── schema-version.hxx │ ├── section.cxx │ ├── section.hxx │ ├── session.cxx │ ├── session.hxx │ ├── session.ixx │ ├── session.txx │ ├── simple-object-result.hxx │ ├── simple-object-result.txx │ ├── statement-processing-common.hxx │ ├── statement-processing.cxx │ ├── statement.cxx │ ├── statement.hxx │ ├── std-array-traits.hxx │ ├── std-deque-traits.hxx │ ├── std-forward-list-traits.hxx │ ├── std-list-traits.hxx │ ├── std-map-traits.hxx │ ├── std-set-traits.hxx │ ├── std-unordered-map-traits.hxx │ ├── std-unordered-set-traits.hxx │ ├── std-vector-traits.hxx │ ├── tr1 │ │ ├── lazy-pointer-traits.hxx │ │ ├── lazy-ptr.hxx │ │ ├── lazy-ptr.ixx │ │ ├── lazy-ptr.txx │ │ ├── memory.hxx │ │ ├── pointer-traits.hxx │ │ └── wrapper-traits.hxx │ ├── tracer.cxx │ ├── tracer.hxx │ ├── traits.hxx │ ├── transaction.cxx │ ├── transaction.hxx │ ├── transaction.ixx │ ├── vector-impl.cxx │ ├── vector-impl.hxx │ ├── vector-impl.ixx │ ├── vector-traits.hxx │ ├── vector-traits.txx │ ├── vector.hxx │ ├── vector.ixx │ ├── version.hxx │ ├── version.hxx.in │ ├── view-image.hxx │ ├── view-result.hxx │ ├── view-result.txx │ └── wrapper-traits.hxx └── tests │ ├── .gitignore │ ├── basics │ ├── buildfile │ └── driver.cxx │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ └── buildfile ├── odb-examples ├── .gitignore ├── LICENSE ├── README.md ├── UNLICENSE ├── access │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── boost │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── employee.hxx │ └── testscript ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build ├── buildfile ├── c++11 │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── employee.hxx │ └── testscript ├── composite │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── container-nested │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── container │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── database-options.testscript ├── hello │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── inheritance │ ├── polymorphism │ │ ├── README │ │ ├── buildfile │ │ ├── database.hxx │ │ ├── driver.cxx │ │ ├── employee.cxx │ │ ├── employee.hxx │ │ └── testscript │ └── reuse │ │ ├── README │ │ ├── buildfile │ │ ├── database.hxx │ │ ├── driver.cxx │ │ ├── employee.hxx │ │ └── testscript ├── inverse │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── employee.hxx │ └── testscript ├── manifest ├── mapping │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ ├── testscript │ ├── traits-mssql.hxx │ ├── traits-mysql.hxx │ ├── traits-oracle.hxx │ ├── traits-pgsql.hxx │ ├── traits-sqlite.hxx │ └── traits.hxx ├── mssql-schema.testscript ├── mssql.testscript ├── mysql-schema.testscript ├── mysql.testscript ├── optimistic │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── oracle-schema.testscript ├── oracle.testscript ├── pgsql-schema.testscript ├── pgsql.testscript ├── pimpl │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.cxx │ ├── person.hxx │ └── testscript ├── prepared │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── qt │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── employee.hxx │ └── testscript ├── query │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── relationship │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── employee.hxx │ └── testscript ├── schema │ ├── custom │ │ ├── README │ │ ├── buildfile │ │ ├── database.hxx │ │ ├── driver.cxx │ │ ├── employee.hxx │ │ └── testscript │ └── embedded │ │ ├── README │ │ ├── buildfile │ │ ├── database.hxx │ │ ├── driver.cxx │ │ ├── person.hxx │ │ └── testscript ├── section │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── person.hxx │ └── testscript ├── sqlite-schema.testscript ├── sqlite.testscript └── view │ ├── README │ ├── buildfile │ ├── database.hxx │ ├── driver.cxx │ ├── employee.hxx │ └── testscript ├── odb-tests ├── .gitignore ├── GPLv2 ├── LICENSE ├── README.md ├── boost │ ├── buildfile │ ├── common │ │ ├── multi-index │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ ├── optional │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ ├── smart-ptr │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ ├── unordered │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── uuid │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── mssql │ │ └── date-time │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── mysql │ │ └── date-time │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── oracle │ │ └── date-time │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── pgsql │ │ └── date-time │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ └── sqlite │ │ └── date-time │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript ├── build │ ├── .gitignore │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── common │ ├── access │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── as │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── blob │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── buildfile │ ├── bulk │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── callback │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── changelog │ │ ├── .gitignore │ │ ├── add-column-mssql-diff.xml │ │ ├── add-column-mssql-patch.xml │ │ ├── add-column-mysql-diff.xml │ │ ├── add-column-mysql-patch.xml │ │ ├── add-column-oracle-diff.xml │ │ ├── add-column-oracle-patch.xml │ │ ├── add-column-pgsql-diff.xml │ │ ├── add-column-pgsql-patch.xml │ │ ├── add-column-sqlite-diff.xml │ │ ├── add-column-sqlite-patch.xml │ │ ├── add-column.hxx │ │ ├── add-foreign-key-diff.xml │ │ ├── add-foreign-key-mssql-diff.xml │ │ ├── add-foreign-key-mssql-patch.xml │ │ ├── add-foreign-key-mysql-diff.xml │ │ ├── add-foreign-key-mysql-patch.xml │ │ ├── add-foreign-key-oracle-diff.xml │ │ ├── add-foreign-key-oracle-patch.xml │ │ ├── add-foreign-key-pgsql-diff.xml │ │ ├── add-foreign-key-pgsql-patch.xml │ │ ├── add-foreign-key-sqlite-diff.xml │ │ ├── add-foreign-key-sqlite-patch.xml │ │ ├── add-foreign-key.hxx │ │ ├── add-index-mssql-diff.xml │ │ ├── add-index-mssql-patch.xml │ │ ├── add-index-mysql-diff.xml │ │ ├── add-index-mysql-patch.xml │ │ ├── add-index-oracle-diff.xml │ │ ├── add-index-oracle-patch.xml │ │ ├── add-index-pgsql-diff.xml │ │ ├── add-index-pgsql-patch.xml │ │ ├── add-index-sqlite-diff.xml │ │ ├── add-index-sqlite-patch.xml │ │ ├── add-index.hxx │ │ ├── add-table-mssql-diff.xml │ │ ├── add-table-mssql-patch.xml │ │ ├── add-table-mysql-diff.xml │ │ ├── add-table-mysql-patch.xml │ │ ├── add-table-oracle-diff.xml │ │ ├── add-table-oracle-patch.xml │ │ ├── add-table-pgsql-diff.xml │ │ ├── add-table-pgsql-patch.xml │ │ ├── add-table-sqlite-diff.xml │ │ ├── add-table-sqlite-patch.xml │ │ ├── add-table.hxx │ │ ├── alter-column-mssql-diff.xml │ │ ├── alter-column-mssql-patch.xml │ │ ├── alter-column-mysql-diff.xml │ │ ├── alter-column-mysql-patch.xml │ │ ├── alter-column-oracle-diff.xml │ │ ├── alter-column-oracle-patch.xml │ │ ├── alter-column-pgsql-diff.xml │ │ ├── alter-column-pgsql-patch.xml │ │ ├── alter-column-sqlite-diff.xml │ │ ├── alter-column-sqlite-patch.xml │ │ ├── alter-column.hxx │ │ ├── buildfile │ │ ├── drop-column-mssql-diff.xml │ │ ├── drop-column-mssql-patch.xml │ │ ├── drop-column-mysql-diff.xml │ │ ├── drop-column-mysql-patch.xml │ │ ├── drop-column-oracle-diff.xml │ │ ├── drop-column-oracle-patch.xml │ │ ├── drop-column-pgsql-diff.xml │ │ ├── drop-column-pgsql-patch.xml │ │ ├── drop-column-sqlite-diff.xml │ │ ├── drop-column-sqlite-patch.xml │ │ ├── drop-column.hxx │ │ ├── drop-foreign-key-mssql-diff.xml │ │ ├── drop-foreign-key-mssql-patch.xml │ │ ├── drop-foreign-key-mysql-diff.xml │ │ ├── drop-foreign-key-mysql-patch.xml │ │ ├── drop-foreign-key-oracle-diff.xml │ │ ├── drop-foreign-key-oracle-patch.xml │ │ ├── drop-foreign-key-pgsql-diff.xml │ │ ├── drop-foreign-key-pgsql-patch.xml │ │ ├── drop-foreign-key-sqlite-diff.xml │ │ ├── drop-foreign-key-sqlite-patch.xml │ │ ├── drop-foreign-key.hxx │ │ ├── drop-index-mssql-diff.xml │ │ ├── drop-index-mssql-patch.xml │ │ ├── drop-index-mysql-diff.xml │ │ ├── drop-index-mysql-patch.xml │ │ ├── drop-index-oracle-diff.xml │ │ ├── drop-index-oracle-patch.xml │ │ ├── drop-index-pgsql-diff.xml │ │ ├── drop-index-pgsql-patch.xml │ │ ├── drop-index-sqlite-diff.xml │ │ ├── drop-index-sqlite-patch.xml │ │ ├── drop-index.hxx │ │ ├── drop-table-mssql-diff.xml │ │ ├── drop-table-mssql-patch.xml │ │ ├── drop-table-mysql-diff.xml │ │ ├── drop-table-mysql-patch.xml │ │ ├── drop-table-oracle-diff.xml │ │ ├── drop-table-oracle-patch.xml │ │ ├── drop-table-pgsql-diff.xml │ │ ├── drop-table-pgsql-patch.xml │ │ ├── drop-table-sqlite-diff.xml │ │ ├── drop-table-sqlite-patch.xml │ │ ├── drop-table.hxx │ │ ├── model-mssql-diff.xml │ │ ├── model-mssql-patch.xml │ │ ├── model-mssql.xml │ │ ├── model-mysql-diff.xml │ │ ├── model-mysql-patch.xml │ │ ├── model-mysql.xml │ │ ├── model-oracle-diff.xml │ │ ├── model-oracle-patch.xml │ │ ├── model-oracle.xml │ │ ├── model-pgsql-diff.xml │ │ ├── model-pgsql-patch.xml │ │ ├── model-pgsql.xml │ │ ├── model-sqlite-diff.xml │ │ ├── model-sqlite-patch.xml │ │ ├── model-sqlite.xml │ │ ├── model.hxx │ │ └── testscript │ ├── circular │ │ ├── buildfile │ │ ├── multiple │ │ │ ├── .gitignore │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test1.hxx │ │ │ ├── test2.hxx │ │ │ └── testscript │ │ └── single │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── composite │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── const-member │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── const-object │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── container │ │ ├── basics │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── change-tracking │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── ctor │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── default │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── definition │ │ ├── .gitignore │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ ├── testscript │ │ └── time-mapping.hxx │ ├── enum │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── erase-query │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── id │ │ ├── auto │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ ├── composite │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── nested │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── include │ │ ├── .gitignore │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── obj1.hxx │ │ ├── obj2.hxx │ │ ├── obj3.hxx │ │ ├── objs1.hxx │ │ ├── objs2.hxx │ │ ├── objs3.hxx │ │ ├── objs4.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ ├── test4.hxx │ │ └── testscript │ ├── index │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── inheritance │ │ ├── polymorphism │ │ │ ├── .gitignore │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test1.hxx │ │ │ ├── test10.hxx │ │ │ ├── test11.hxx │ │ │ ├── test12.hxx │ │ │ ├── test13.hxx │ │ │ ├── test14.hxx │ │ │ ├── test15.hxx │ │ │ ├── test2.hxx │ │ │ ├── test3.hxx │ │ │ ├── test4.hxx │ │ │ ├── test5.hxx │ │ │ ├── test6.hxx │ │ │ ├── test7.hxx │ │ │ ├── test8.hxx │ │ │ ├── test9.hxx │ │ │ └── testscript │ │ ├── reuse │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── transient │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── inverse │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── lazy-ptr │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── lifecycle │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── no-id │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── object │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── optimistic │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── pragma │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── prepared │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── query │ │ ├── array │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ ├── basics │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── one │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── readonly │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── relationship │ │ ├── basics │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ ├── on-delete │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── query │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── schema │ │ ├── embedded │ │ │ ├── basics │ │ │ │ ├── buildfile │ │ │ │ ├── driver.cxx │ │ │ │ ├── test.hxx │ │ │ │ └── testscript │ │ │ └── order │ │ │ │ ├── .gitignore │ │ │ │ ├── buildfile │ │ │ │ ├── driver.cxx │ │ │ │ ├── test1.hxx │ │ │ │ ├── test2.hxx │ │ │ │ └── testscript │ │ └── namespace │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── section │ │ ├── basics │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── polymorphism │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── session │ │ ├── cache │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── custom │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── session.cxx │ │ │ ├── session.hxx │ │ │ ├── session.txx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── statement │ │ └── processing │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ └── testscript │ ├── threads │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── transaction │ │ ├── basics │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ └── testscript │ │ └── callback │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ └── testscript │ ├── types │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── view │ │ ├── basics │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── olv │ │ │ ├── .gitignore │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test1.hxx │ │ │ ├── test2.hxx │ │ │ ├── test3.hxx │ │ │ ├── test4.hxx │ │ │ ├── test5.hxx │ │ │ ├── test6.hxx │ │ │ ├── test7.hxx │ │ │ ├── test8.hxx │ │ │ ├── test9.hxx │ │ │ └── testscript │ ├── virtual │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ └── wrapper │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript ├── database-options.testscript ├── evolution │ ├── .gitignore │ ├── add-column │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── add-foreign-key │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── add-index │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── add-table │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── alter-column │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── combined │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── data │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── drop-column │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── drop-foreign-key │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── drop-index │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── drop-table │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── embedded │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── soft-add │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ ├── soft-delete │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript │ └── version │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── model.hxx │ │ ├── test1.hxx │ │ ├── test2.hxx │ │ ├── test3.hxx │ │ └── testscript ├── libcommon │ ├── .gitignore │ ├── buffer.hxx │ ├── buildfile │ ├── common.cxx │ ├── common.hxx │ ├── common.txx │ ├── concrete.hxx │ ├── config.hxx.in │ └── export.hxx ├── manifest ├── mssql-schema.testscript ├── mssql.testscript ├── mssql │ ├── custom │ │ ├── buildfile │ │ ├── custom.sql │ │ ├── driver.cxx │ │ ├── query.hxx │ │ ├── test.hxx │ │ ├── testscript │ │ ├── traits.cxx │ │ └── traits.hxx │ ├── database │ │ ├── buildfile │ │ ├── driver.cxx │ │ └── testscript │ ├── native │ │ ├── buildfile │ │ ├── driver.cxx │ │ └── testscript │ ├── query │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── stored-proc │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ └── types │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ ├── testscript │ │ └── traits.hxx ├── mysql-schema.testscript ├── mysql.testscript ├── mysql │ ├── custom │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── query.hxx │ │ ├── test.hxx │ │ ├── testscript │ │ └── traits.hxx │ ├── database │ │ ├── buildfile │ │ ├── driver.cxx │ │ └── testscript │ ├── index │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── native │ │ ├── buildfile │ │ ├── driver.cxx │ │ └── testscript │ ├── truncation │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ └── types │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ ├── testscript │ │ └── traits.hxx ├── oracle-schema.testscript ├── oracle.testscript ├── oracle │ ├── custom │ │ ├── buildfile │ │ ├── custom.sql │ │ ├── driver.cxx │ │ ├── test.hxx │ │ ├── testscript │ │ └── traits.hxx │ ├── database │ │ ├── buildfile │ │ ├── driver.cxx │ │ └── testscript │ ├── native │ │ ├── buildfile │ │ ├── driver.cxx │ │ └── testscript │ └── types │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ ├── testscript │ │ └── traits.hxx ├── pgsql-schema.testscript ├── pgsql.testscript ├── pgsql │ ├── buildfile │ ├── bulk │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── custom │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── query.hxx │ │ ├── test.hxx │ │ ├── testscript │ │ └── traits.hxx │ ├── database │ │ ├── buildfile │ │ ├── driver.cxx │ │ └── testscript │ ├── index │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── native │ │ ├── buildfile │ │ ├── driver.cxx │ │ └── testscript │ ├── stored-proc │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ ├── truncation │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ └── types │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ ├── testscript │ │ └── traits.hxx ├── qt │ ├── buildfile │ ├── common │ │ ├── basic │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ ├── containers │ │ │ ├── basics │ │ │ │ ├── buildfile │ │ │ │ ├── driver.cxx │ │ │ │ ├── test.hxx │ │ │ │ └── testscript │ │ │ └── change-tracking │ │ │ │ ├── buildfile │ │ │ │ ├── driver.cxx │ │ │ │ ├── test.hxx │ │ │ │ └── testscript │ │ └── smart-ptr │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── mssql │ │ ├── basic │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── date-time │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── mysql │ │ ├── basic │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── date-time │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── oracle │ │ ├── basic │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── date-time │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ ├── pgsql │ │ ├── basic │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ │ └── date-time │ │ │ ├── buildfile │ │ │ ├── driver.cxx │ │ │ ├── test.hxx │ │ │ └── testscript │ └── sqlite │ │ ├── basic │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript │ │ └── date-time │ │ ├── buildfile │ │ ├── driver.cxx │ │ ├── test.hxx │ │ └── testscript ├── sqlite-schema.testscript ├── sqlite.testscript └── sqlite │ ├── attach │ ├── buildfile │ ├── driver.cxx │ ├── test.hxx │ └── testscript │ ├── auto │ ├── buildfile │ ├── driver.cxx │ ├── test.hxx │ └── testscript │ ├── custom │ ├── buildfile │ ├── driver.cxx │ ├── test.hxx │ └── testscript │ ├── database │ ├── buildfile │ ├── driver.cxx │ └── testscript │ ├── native │ ├── buildfile │ ├── driver.cxx │ └── testscript │ ├── stream │ ├── buildfile │ ├── driver.cxx │ ├── test.hxx │ └── testscript │ ├── transaction │ ├── buildfile │ ├── driver.cxx │ ├── test.hxx │ └── testscript │ ├── truncation │ ├── buildfile │ ├── driver.cxx │ ├── test.hxx │ └── testscript │ └── types │ ├── buildfile │ ├── driver.cxx │ ├── test.hxx │ ├── testscript │ └── traits.hxx ├── odb ├── .gitignore ├── GPLv3 ├── LICENSE ├── NEWS ├── PACKAGE-README.md ├── README.md ├── build │ ├── .gitignore │ ├── bindist-archive-post.bx │ ├── bootstrap.build │ ├── export.build │ └── root.build ├── buildfile ├── doc │ ├── .gitignore │ ├── buildfile │ ├── default.css │ ├── manual.html2ps │ ├── manual.xhtml │ ├── odb-arch.png │ ├── odb-arch.svg │ ├── odb-epilogue.1 │ ├── odb-epilogue.xhtml │ ├── odb-flow.png │ ├── odb-flow.svg │ ├── odb-prologue.1 │ ├── odb-prologue.xhtml │ └── pregenerated │ │ ├── odb.1 │ │ └── odb.xhtml ├── manifest ├── odb │ ├── .gitignore │ ├── buildfile │ ├── common-query.cxx │ ├── common-query.hxx │ ├── common.cxx │ ├── common.hxx │ ├── context.cxx │ ├── context.hxx │ ├── context.ixx │ ├── cxx-lexer.cxx │ ├── cxx-lexer.hxx │ ├── cxx-token.hxx │ ├── diagnostics.cxx │ ├── diagnostics.hxx │ ├── emitter.cxx │ ├── emitter.hxx │ ├── features.hxx │ ├── gcc-fwd.hxx │ ├── gcc.hxx │ ├── generate.hxx │ ├── generator.cxx │ ├── generator.hxx │ ├── header.cxx │ ├── include.cxx │ ├── inline.cxx │ ├── instance.cxx │ ├── instance.hxx │ ├── location.cxx │ ├── location.hxx │ ├── lookup.cxx │ ├── lookup.hxx │ ├── odb.cxx │ ├── option-functions.cxx │ ├── option-functions.hxx │ ├── option-parsers.hxx │ ├── option-types.cxx │ ├── option-types.hxx │ ├── options.cli │ ├── parser.cxx │ ├── parser.hxx │ ├── plugin.cxx │ ├── pragma.cxx │ ├── pragma.hxx │ ├── pregenerated │ │ └── odb │ │ │ ├── options.cxx │ │ │ ├── options.hxx │ │ │ └── options.ixx │ ├── processor.cxx │ ├── processor.hxx │ ├── profile.cxx │ ├── profile.hxx │ ├── relational │ │ ├── changelog.cxx │ │ ├── common-query.cxx │ │ ├── common-query.hxx │ │ ├── common.cxx │ │ ├── common.hxx │ │ ├── common.txx │ │ ├── context.cxx │ │ ├── context.hxx │ │ ├── context.ixx │ │ ├── generate.hxx │ │ ├── header.cxx │ │ ├── header.hxx │ │ ├── inline.cxx │ │ ├── inline.hxx │ │ ├── model.cxx │ │ ├── model.hxx │ │ ├── mssql │ │ │ ├── common.cxx │ │ │ ├── common.hxx │ │ │ ├── context.cxx │ │ │ ├── context.hxx │ │ │ ├── header.cxx │ │ │ ├── inline.cxx │ │ │ ├── model.cxx │ │ │ ├── schema.cxx │ │ │ └── source.cxx │ │ ├── mysql │ │ │ ├── common.cxx │ │ │ ├── common.hxx │ │ │ ├── context.cxx │ │ │ ├── context.hxx │ │ │ ├── header.cxx │ │ │ ├── inline.cxx │ │ │ ├── model.cxx │ │ │ ├── schema.cxx │ │ │ └── source.cxx │ │ ├── oracle │ │ │ ├── common.cxx │ │ │ ├── common.hxx │ │ │ ├── context.cxx │ │ │ ├── context.hxx │ │ │ ├── header.cxx │ │ │ ├── inline.cxx │ │ │ ├── model.cxx │ │ │ ├── schema.cxx │ │ │ └── source.cxx │ │ ├── pgsql │ │ │ ├── common.cxx │ │ │ ├── common.hxx │ │ │ ├── context.cxx │ │ │ ├── context.hxx │ │ │ ├── header.cxx │ │ │ ├── inline.cxx │ │ │ ├── model.cxx │ │ │ ├── schema.cxx │ │ │ └── source.cxx │ │ ├── processor.cxx │ │ ├── processor.hxx │ │ ├── schema-source.cxx │ │ ├── schema-source.hxx │ │ ├── schema.cxx │ │ ├── schema.hxx │ │ ├── source.cxx │ │ ├── source.hxx │ │ ├── sqlite │ │ │ ├── common.cxx │ │ │ ├── common.hxx │ │ │ ├── context.cxx │ │ │ ├── context.hxx │ │ │ ├── header.cxx │ │ │ ├── inline.cxx │ │ │ ├── model.cxx │ │ │ ├── schema.cxx │ │ │ └── source.cxx │ │ ├── validator.cxx │ │ └── validator.hxx │ ├── semantics.hxx │ ├── semantics │ │ ├── class-template.cxx │ │ ├── class-template.hxx │ │ ├── class.cxx │ │ ├── class.hxx │ │ ├── derived.cxx │ │ ├── derived.hxx │ │ ├── elements.cxx │ │ ├── elements.hxx │ │ ├── elements.ixx │ │ ├── enum.cxx │ │ ├── enum.hxx │ │ ├── fundamental.cxx │ │ ├── fundamental.hxx │ │ ├── namespace.cxx │ │ ├── namespace.hxx │ │ ├── relational.hxx │ │ ├── relational │ │ │ ├── changelog.cxx │ │ │ ├── changelog.hxx │ │ │ ├── changeset.cxx │ │ │ ├── changeset.hxx │ │ │ ├── column.cxx │ │ │ ├── column.hxx │ │ │ ├── deferrable.cxx │ │ │ ├── deferrable.hxx │ │ │ ├── elements.cxx │ │ │ ├── elements.hxx │ │ │ ├── elements.txx │ │ │ ├── foreign-key.cxx │ │ │ ├── foreign-key.hxx │ │ │ ├── index.cxx │ │ │ ├── index.hxx │ │ │ ├── key.cxx │ │ │ ├── key.hxx │ │ │ ├── model.cxx │ │ │ ├── model.hxx │ │ │ ├── name.cxx │ │ │ ├── name.hxx │ │ │ ├── primary-key.cxx │ │ │ ├── primary-key.hxx │ │ │ ├── table.cxx │ │ │ └── table.hxx │ │ ├── template.cxx │ │ ├── template.hxx │ │ ├── union-template.cxx │ │ ├── union-template.hxx │ │ ├── union.cxx │ │ ├── union.hxx │ │ ├── unit.cxx │ │ └── unit.hxx │ ├── source.cxx │ ├── sql-lexer.cxx │ ├── sql-lexer.hxx │ ├── sql-lexer.ixx │ ├── sql-token.cxx │ ├── sql-token.hxx │ ├── sql-token.ixx │ ├── traversal.hxx │ ├── traversal │ │ ├── class-template.cxx │ │ ├── class-template.hxx │ │ ├── class.cxx │ │ ├── class.hxx │ │ ├── derived.cxx │ │ ├── derived.hxx │ │ ├── elements.cxx │ │ ├── elements.hxx │ │ ├── enum.cxx │ │ ├── enum.hxx │ │ ├── fundamental.hxx │ │ ├── namespace.hxx │ │ ├── relational.hxx │ │ ├── relational │ │ │ ├── changelog.cxx │ │ │ ├── changelog.hxx │ │ │ ├── changeset.hxx │ │ │ ├── column.hxx │ │ │ ├── elements.hxx │ │ │ ├── foreign-key.hxx │ │ │ ├── index.hxx │ │ │ ├── key.cxx │ │ │ ├── key.hxx │ │ │ ├── model.hxx │ │ │ ├── primary-key.hxx │ │ │ └── table.hxx │ │ ├── template.cxx │ │ ├── template.hxx │ │ ├── union-template.cxx │ │ ├── union-template.hxx │ │ ├── union.hxx │ │ └── unit.hxx │ ├── validator.cxx │ ├── validator.hxx │ ├── version.hxx │ └── version.hxx.in └── tests │ ├── .gitignore │ ├── build │ ├── .gitignore │ ├── bootstrap.build │ └── root.build │ ├── buildfile │ └── testscript ├── packages.manifest └── repositories.manifest /.gitignore: -------------------------------------------------------------------------------- 1 | .bdep/ 2 | 3 | # Local default options files. 4 | # 5 | .build2/local/ 6 | -------------------------------------------------------------------------------- /buildfile: -------------------------------------------------------------------------------- 1 | # Glue buildfile that "pulls" all the packages in the project. 2 | # 3 | import pkgs = [dir_paths] $process.run_regex(\ 4 | cat $src_root/packages.manifest, '\s*location\s*:\s*(\S+)\s*', '\1') 5 | 6 | ./: $pkgs 7 | -------------------------------------------------------------------------------- /libodb-boost/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /libodb-boost/GPLv2: -------------------------------------------------------------------------------- 1 | ../GPLv2 -------------------------------------------------------------------------------- /libodb-boost/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /libodb-boost/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /libodb-boost/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-boost/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = libodb-boost 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /libodb-boost/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/boost/ 7 | } 8 | 9 | export $out_root/odb/boost/lib{odb-boost} 10 | -------------------------------------------------------------------------------- /libodb-boost/build/root.build: -------------------------------------------------------------------------------- 1 | # file : build/root.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | cxx.std = latest 5 | 6 | using cxx 7 | 8 | hxx{*}: extension = hxx 9 | ixx{*}: extension = ixx 10 | txx{*}: extension = txx 11 | cxx{*}: extension = cxx 12 | 13 | if ($cxx.target.system == 'win32-msvc') 14 | cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS 15 | 16 | if ($cxx.class == 'msvc') 17 | cxx.coptions += /wd4251 /wd4275 /wd4800 18 | -------------------------------------------------------------------------------- /libodb-boost/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} \ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{GPLv2 LICENSE} \ 7 | manifest 8 | 9 | # Don't install tests. 10 | # 11 | tests/: install = false 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/smart-ptr 5 | --profile boost/optional 6 | --profile boost/unordered 7 | --profile boost/date-time 8 | --profile boost/multi-index 9 | --profile boost/uuid 10 | 11 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/date-time/gregorian 5 | --profile boost/date-time/posix-time 6 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/gregorian-common.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/gregorian-common.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/gregorian-mssql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/gregorian-mssql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/gregorian-mysql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/gregorian-mysql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/gregorian-oracle.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/gregorian-oracle.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/gregorian-pgsql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/gregorian-pgsql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/gregorian-sqlite.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/gregorian-sqlite.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/posix-time-common.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/posix-time-common.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/posix-time-mssql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/posix-time-mssql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/posix-time-mysql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/posix-time-mysql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/posix-time-oracle.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/posix-time-oracle.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/posix-time-pgsql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/posix-time-pgsql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/date-time/posix-time-sqlite.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/date-time/posix-time-sqlite.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/details/config.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/boost/details/config.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_BOOST_DETAILS_CONFIG_HXX 5 | #define ODB_BOOST_DETAILS_CONFIG_HXX 6 | 7 | // no pre 8 | 9 | #ifdef ODB_COMPILER 10 | # define LIBODB_BOOST_STATIC 11 | #endif 12 | 13 | // no post 14 | 15 | #endif // ODB_BOOST_DETAILS_CONFIG_HXX 16 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/lazy-ptr.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/boost/lazy-ptr.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_BOOST_LAZY_PTR_HXX 5 | #define ODB_BOOST_LAZY_PTR_HXX 6 | 7 | #include 8 | 9 | #endif // ODB_BOOST_LAZY_PTR_HXX 10 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/multi-index.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/multi-index.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | --odb-epilogue '#include ' 7 | --hxx-prologue '#include ' 8 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/optional.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/optional.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | --odb-epilogue '#include ' 7 | --hxx-prologue '#include ' 8 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/unordered.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/unordered.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | --odb-epilogue '#include ' 7 | --hxx-prologue '#include ' 8 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/uuid.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/uuid.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/uuid/uuid 5 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/uuid/uuid-common.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/uuid/uuid-common.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/uuid/uuid-mssql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/uuid/uuid-mssql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/uuid/uuid-mysql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/uuid/uuid-mysql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/uuid/uuid-oracle.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/uuid/uuid-oracle.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/uuid/uuid-pgsql.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/uuid/uuid-pgsql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/uuid/uuid-sqlite.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/uuid/uuid-sqlite.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile boost/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | -------------------------------------------------------------------------------- /libodb-boost/odb/boost/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/libodb-boost/odb/boost/version.hxx -------------------------------------------------------------------------------- /libodb-boost/odb/boost/version.options: -------------------------------------------------------------------------------- 1 | # file : odb/boost/version.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Make sure the options files as seen by the ODB compiler and header 5 | # files as seen by the C++ compiler have the same Boost interface 6 | # version. 7 | # 8 | --hxx-prologue '#include ' 9 | 10 | --hxx-prologue '#if ODB_BOOST_VERSION != 2055100 // 2.6.0-b.1' 11 | --hxx-prologue '# error ODB and C++ compilers see different libodb-boost interface versions' 12 | --hxx-prologue '#endif' 13 | -------------------------------------------------------------------------------- /libodb-boost/tests/.gitignore: -------------------------------------------------------------------------------- 1 | driver 2 | -------------------------------------------------------------------------------- /libodb-boost/tests/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/basics/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb-boost%lib{odb-boost} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs 7 | -------------------------------------------------------------------------------- /libodb-boost/tests/basics/driver.cxx: -------------------------------------------------------------------------------- 1 | // file : tests/basics/driver.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | // Basic test to make sure the library is usable. Functionality testing 5 | // is done in the odb-tests package. 6 | 7 | #include 8 | #include 9 | 10 | using namespace odb; 11 | 12 | int 13 | main () 14 | { 15 | try 16 | { 17 | throw boost::date_time::value_out_of_range (); 18 | } 19 | catch (const boost::exception&) 20 | { 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /libodb-boost/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-boost/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /libodb-boost/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} 5 | -------------------------------------------------------------------------------- /libodb-mssql/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /libodb-mssql/NCUEL: -------------------------------------------------------------------------------- 1 | ../NCUEL -------------------------------------------------------------------------------- /libodb-mssql/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /libodb-mssql/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /libodb-mssql/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-mssql/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | project = libodb-mssql 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /libodb-mssql/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/mssql/ 7 | } 8 | 9 | export $out_root/odb/mssql/lib{odb-mssql} 10 | -------------------------------------------------------------------------------- /libodb-mssql/build/root.build: -------------------------------------------------------------------------------- 1 | # file : build/root.build 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | config [bool] config.libodb_mssql.develop ?= false 5 | 6 | cxx.std = latest 7 | 8 | using cxx 9 | 10 | hxx{*}: extension = hxx 11 | ixx{*}: extension = ixx 12 | txx{*}: extension = txx 13 | cxx{*}: extension = cxx 14 | 15 | if ($cxx.target.system == 'win32-msvc') 16 | cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS 17 | 18 | if ($cxx.class == 'msvc') 19 | cxx.coptions += /wd4251 /wd4275 /wd4800 20 | -------------------------------------------------------------------------------- /libodb-mssql/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} \ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{NCUEL LICENSE} \ 7 | manifest 8 | 9 | # Don't install tests. 10 | # 11 | tests/: install = false 12 | -------------------------------------------------------------------------------- /libodb-mssql/odb/mssql/auto-handle.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mssql/auto-handle.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | #include 6 | 7 | namespace odb 8 | { 9 | namespace mssql 10 | { 11 | void 12 | free_handle (SQLHANDLE h, SQLSMALLINT htype) 13 | { 14 | SQLFreeHandle (htype, h); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /libodb-mssql/odb/mssql/details/.gitignore: -------------------------------------------------------------------------------- 1 | /options.?xx 2 | -------------------------------------------------------------------------------- /libodb-mssql/odb/mssql/details/config.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/mssql/details/config.hxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #ifndef ODB_MSSQL_DETAILS_CONFIG_HXX 5 | #define ODB_MSSQL_DETAILS_CONFIG_HXX 6 | 7 | // no pre 8 | 9 | #ifdef ODB_COMPILER 10 | # error libodb-mssql header included in odb-compiled header 11 | #endif 12 | 13 | // no post 14 | 15 | #endif // ODB_MSSQL_DETAILS_CONFIG_HXX 16 | -------------------------------------------------------------------------------- /libodb-mssql/odb/mssql/prepared-query.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mssql/prepared-query.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace mssql 9 | { 10 | prepared_query_impl:: 11 | ~prepared_query_impl () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-mssql/odb/mssql/query-const-expr.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mssql/query-const-expr.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace mssql 9 | { 10 | // Sun CC cannot handle this in query.cxx. 11 | // 12 | const query_base query_base::true_expr (true); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /libodb-mssql/odb/mssql/simple-object-statements.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mssql/simple-object-statements.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace mssql 9 | { 10 | object_statements_base:: 11 | ~object_statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-mssql/odb/mssql/statements-base.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mssql/statements-base.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace mssql 9 | { 10 | statements_base:: 11 | ~statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-mssql/odb/mssql/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/libodb-mssql/odb/mssql/version.hxx -------------------------------------------------------------------------------- /libodb-mssql/tests/.gitignore: -------------------------------------------------------------------------------- 1 | driver 2 | -------------------------------------------------------------------------------- /libodb-mssql/tests/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/basics/buildfile 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | import libs = libodb-mssql%lib{odb-mssql} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs 7 | -------------------------------------------------------------------------------- /libodb-mssql/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-mssql/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /libodb-mssql/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} 5 | -------------------------------------------------------------------------------- /libodb-mysql/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /libodb-mysql/GPLv2: -------------------------------------------------------------------------------- 1 | ../GPLv2 -------------------------------------------------------------------------------- /libodb-mysql/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /libodb-mysql/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /libodb-mysql/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-mysql/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = libodb-mysql 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /libodb-mysql/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/mysql/ 7 | } 8 | 9 | export $out_root/odb/mysql/lib{odb-mysql} 10 | -------------------------------------------------------------------------------- /libodb-mysql/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} \ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{GPLv2 LICENSE} \ 7 | manifest 8 | 9 | # Don't install tests. 10 | # 11 | tests/: install = false 12 | -------------------------------------------------------------------------------- /libodb-mysql/odb/mysql/details/.gitignore: -------------------------------------------------------------------------------- 1 | /options.?xx 2 | -------------------------------------------------------------------------------- /libodb-mysql/odb/mysql/details/config-vc.h: -------------------------------------------------------------------------------- 1 | /* file : odb/mysql/details/config-vc.h 2 | * license : GNU GPL v2; see accompanying LICENSE file 3 | */ 4 | 5 | #ifndef ODB_MYSQL_DETAILS_CONFIG_VC_H 6 | #define ODB_MYSQL_DETAILS_CONFIG_VC_H 7 | 8 | #if !defined(LIBODB_MYSQL_INCLUDE_SHORT) && !defined (LIBODB_MYSQL_INCLUDE_LONG) 9 | # define LIBODB_MYSQL_INCLUDE_SHORT 1 10 | #endif 11 | 12 | #endif /* ODB_MYSQL_DETAILS_CONFIG_VC_H */ 13 | -------------------------------------------------------------------------------- /libodb-mysql/odb/mysql/details/config.h.in: -------------------------------------------------------------------------------- 1 | /* file : odb/mysql/details/config.h.in 2 | * license : GNU GPL v2; see accompanying LICENSE file 3 | */ 4 | 5 | /* This file is automatically processed by configure. */ 6 | 7 | #ifndef ODB_MYSQL_DETAILS_CONFIG_H 8 | #define ODB_MYSQL_DETAILS_CONFIG_H 9 | 10 | #undef LIBODB_MYSQL_STATIC_LIB 11 | 12 | #undef LIBODB_MYSQL_INCLUDE_SHORT 13 | #undef LIBODB_MYSQL_INCLUDE_LONG 14 | 15 | #undef LIBODB_MYSQL_THR_KEY_VISIBLE 16 | 17 | #endif /* ODB_MYSQL_DETAILS_CONFIG_H */ 18 | -------------------------------------------------------------------------------- /libodb-mysql/odb/mysql/prepared-query.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mysql/prepared-query.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace mysql 9 | { 10 | prepared_query_impl:: 11 | ~prepared_query_impl () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-mysql/odb/mysql/query-const-expr.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mysql/query-const-expr.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace mysql 9 | { 10 | // Sun CC cannot handle this in query.cxx. 11 | // 12 | const query_base query_base::true_expr (true); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /libodb-mysql/odb/mysql/simple-object-statements.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mysql/simple-object-statements.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace mysql 9 | { 10 | object_statements_base:: 11 | ~object_statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-mysql/odb/mysql/statements-base.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/mysql/statements-base.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace mysql 9 | { 10 | statements_base:: 11 | ~statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-mysql/odb/mysql/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/libodb-mysql/odb/mysql/version.hxx -------------------------------------------------------------------------------- /libodb-mysql/tests/.gitignore: -------------------------------------------------------------------------------- 1 | driver 2 | -------------------------------------------------------------------------------- /libodb-mysql/tests/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/basics/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb-mysql%lib{odb-mysql} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs 7 | -------------------------------------------------------------------------------- /libodb-mysql/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-mysql/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /libodb-mysql/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} 5 | -------------------------------------------------------------------------------- /libodb-oracle/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /libodb-oracle/NCUEL: -------------------------------------------------------------------------------- 1 | ../NCUEL -------------------------------------------------------------------------------- /libodb-oracle/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /libodb-oracle/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /libodb-oracle/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-oracle/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | project = libodb-oracle 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /libodb-oracle/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/oracle/ 7 | } 8 | 9 | export $out_root/odb/oracle/lib{odb-oracle} 10 | -------------------------------------------------------------------------------- /libodb-oracle/build/root.build: -------------------------------------------------------------------------------- 1 | # file : build/root.build 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | config [bool] config.libodb_oracle.develop ?= false 5 | 6 | cxx.std = latest 7 | 8 | using cxx 9 | 10 | hxx{*}: extension = hxx 11 | ixx{*}: extension = ixx 12 | txx{*}: extension = txx 13 | cxx{*}: extension = cxx 14 | 15 | if ($cxx.target.system == 'win32-msvc') 16 | cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS 17 | 18 | if ($cxx.class == 'msvc') 19 | cxx.coptions += /wd4251 /wd4275 /wd4800 20 | -------------------------------------------------------------------------------- /libodb-oracle/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/}\ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{NCUEL LICENSE} \ 7 | manifest 8 | 9 | # Don't install tests. 10 | # 11 | tests/: install = false 12 | -------------------------------------------------------------------------------- /libodb-oracle/odb/oracle/details/.gitignore: -------------------------------------------------------------------------------- 1 | /options.?xx 2 | -------------------------------------------------------------------------------- /libodb-oracle/odb/oracle/details/config.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/oracle/details/config.hxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #ifndef ODB_ORACLE_DETAILS_CONFIG_HXX 5 | #define ODB_ORACLE_DETAILS_CONFIG_HXX 6 | 7 | // no pre 8 | 9 | #ifdef ODB_COMPILER 10 | # error libodb-oracle header included in odb-compiled header 11 | #endif 12 | 13 | // no post 14 | 15 | #endif // ODB_ORACLE_DETAILS_CONFIG_HXX 16 | -------------------------------------------------------------------------------- /libodb-oracle/odb/oracle/prepared-query.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/oracle/prepared-query.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace oracle 9 | { 10 | prepared_query_impl:: 11 | ~prepared_query_impl () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-oracle/odb/oracle/query-const-expr.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/oracle/query-const-expr.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace oracle 9 | { 10 | // Sun CC cannot handle this in query.cxx. 11 | // 12 | const query_base query_base::true_expr (true); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /libodb-oracle/odb/oracle/simple-object-statements.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/oracle/simple-object-statements.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace oracle 9 | { 10 | object_statements_base:: 11 | ~object_statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-oracle/odb/oracle/statements-base.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/oracle/statements-base.cxx 2 | // license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace oracle 9 | { 10 | statements_base:: 11 | ~statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-oracle/odb/oracle/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/libodb-oracle/odb/oracle/version.hxx -------------------------------------------------------------------------------- /libodb-oracle/tests/.gitignore: -------------------------------------------------------------------------------- 1 | driver 2 | -------------------------------------------------------------------------------- /libodb-oracle/tests/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/basics/buildfile 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | import libs = libodb-oracle%lib{odb-oracle} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs 7 | -------------------------------------------------------------------------------- /libodb-oracle/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-oracle/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /libodb-oracle/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : ODB NCUEL; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} 5 | -------------------------------------------------------------------------------- /libodb-pgsql/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /libodb-pgsql/GPLv2: -------------------------------------------------------------------------------- 1 | ../GPLv2 -------------------------------------------------------------------------------- /libodb-pgsql/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /libodb-pgsql/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /libodb-pgsql/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-pgsql/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = libodb-pgsql 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /libodb-pgsql/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/pgsql/ 7 | } 8 | 9 | export $out_root/odb/pgsql/lib{odb-pgsql} 10 | -------------------------------------------------------------------------------- /libodb-pgsql/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} \ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{GPLv2 LICENSE} \ 7 | manifest 8 | 9 | # Don't install tests. 10 | # 11 | tests/: install = false 12 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/auto-handle.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/pgsql/auto-handle.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | #include 7 | 8 | namespace odb 9 | { 10 | namespace pgsql 11 | { 12 | void handle_traits:: 13 | release (PGconn* h) 14 | { 15 | PQfinish (h); 16 | } 17 | 18 | void handle_traits:: 19 | release (PGresult* h) 20 | { 21 | PQclear (h); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/details/.gitignore: -------------------------------------------------------------------------------- 1 | /options.?xx 2 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/details/config.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/pgsql/details/config.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_PGSQL_DETAILS_CONFIG_HXX 5 | #define ODB_PGSQL_DETAILS_CONFIG_HXX 6 | 7 | // no pre 8 | 9 | #ifdef ODB_COMPILER 10 | # error libodb-pgsql header included in odb-compiled header 11 | #endif 12 | 13 | // no post 14 | 15 | #endif // ODB_PGSQL_DETAILS_CONFIG_HXX 16 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/pgsql-fwd.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/pgsql/pgsql-fwd.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_PGSQL_PGSQL_FWD_HXX 5 | #define ODB_PGSQL_PGSQL_FWD_HXX 6 | 7 | #include 8 | 9 | // Forward declaration for some of the types defined in libpq-fe.h. This 10 | // allows us to avoid having to include libpq-fe.h in public headers. 11 | // 12 | typedef unsigned int Oid; 13 | 14 | typedef struct pg_conn PGconn; 15 | typedef struct pg_result PGresult; 16 | 17 | #include 18 | 19 | #endif // ODB_PGSQL_PGSQL_FWD_HXX 20 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/prepared-query.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/pgsql/prepared-query.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace pgsql 9 | { 10 | prepared_query_impl:: 11 | ~prepared_query_impl () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/query-const-expr.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/pgsql/query-const-expr.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace pgsql 9 | { 10 | // Sun CC cannot handle this in query.cxx. 11 | // 12 | const query_base query_base::true_expr (true); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/simple-object-statements.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/pgsql/simple-object-statements.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace pgsql 9 | { 10 | object_statements_base:: 11 | ~object_statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/statements-base.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/pgsql/statements-base.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace pgsql 9 | { 10 | statements_base:: 11 | ~statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-pgsql/odb/pgsql/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/libodb-pgsql/odb/pgsql/version.hxx -------------------------------------------------------------------------------- /libodb-pgsql/tests/.gitignore: -------------------------------------------------------------------------------- 1 | driver 2 | -------------------------------------------------------------------------------- /libodb-pgsql/tests/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/basics/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb-pgsql%lib{odb-pgsql} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs 7 | -------------------------------------------------------------------------------- /libodb-pgsql/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-pgsql/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /libodb-pgsql/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} 5 | -------------------------------------------------------------------------------- /libodb-qt/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /libodb-qt/GPLv2: -------------------------------------------------------------------------------- 1 | ../GPLv2 -------------------------------------------------------------------------------- /libodb-qt/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /libodb-qt/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /libodb-qt/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-qt/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = libodb-qt 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /libodb-qt/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/qt/ 7 | } 8 | 9 | export $out_root/odb/qt/lib{odb-qt} 10 | -------------------------------------------------------------------------------- /libodb-qt/build/root.build: -------------------------------------------------------------------------------- 1 | # file : build/root.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | cxx.std = latest 5 | 6 | using cxx 7 | 8 | hxx{*}: extension = hxx 9 | ixx{*}: extension = ixx 10 | txx{*}: extension = txx 11 | cxx{*}: extension = cxx 12 | 13 | if ($cxx.target.system == 'win32-msvc') 14 | cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS 15 | 16 | if ($cxx.class == 'msvc') 17 | cxx.coptions += /wd4251 /wd4275 /wd4800 18 | -------------------------------------------------------------------------------- /libodb-qt/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} \ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{GPLv2 LICENSE} \ 7 | manifest 8 | 9 | # Don't install tests. 10 | # 11 | tests/: install = false 12 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/basic 5 | --profile qt/containers 6 | --profile qt/date-time 7 | --profile qt/smart-ptr 8 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/basic.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/basic.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/basic/basic 5 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/basic/basic-common.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/basic/basic-common.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/version 5 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/basic/basic-mssql.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/basic/basic-mssql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | --hxx-prologue '#include ' 13 | --hxx-prologue '#include ' 14 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/basic/basic-mysql.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/basic/basic-mysql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | --hxx-prologue '#include ' 13 | --hxx-prologue '#include ' 14 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/basic/basic-oracle.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/basic/basic-oracle.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | --hxx-prologue '#include ' 13 | --hxx-prologue '#include ' 14 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/basic/basic-pgsql.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/basic/basic-pgsql.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | --hxx-prologue '#include ' 13 | --hxx-prologue '#include ' 14 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/basic/basic-sqlite.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/basic/basic-sqlite.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/version 5 | 6 | # Include the default mapping in prologue instead of epilogue to 7 | # allow the user to override the default mapping. 8 | # 9 | --odb-prologue '#include ' 10 | 11 | --hxx-prologue '#include ' 12 | --hxx-prologue '#include ' 13 | --hxx-prologue '#include ' 14 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/date-time.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/date-time.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/date-time/date-time 5 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/date-time/date-time-common.options: -------------------------------------------------------------------------------- 1 | # file : odb/qt/date-time/date-time-common.options 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | --profile qt/version 5 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/lazy-ptr.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/qt/lazy-ptr.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_QT_LAZY_PTR_HXX 5 | #define ODB_QT_LAZY_PTR_HXX 6 | 7 | #include 8 | 9 | #endif // ODB_QT_LAZY_PTR_HXX 10 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/list-iterator.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/qt/list-iterator.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_QT_LIST_ITERATOR_HXX 5 | #define ODB_QT_LIST_ITERATOR_HXX 6 | 7 | #include 8 | 9 | #endif // ODB_QT_LIST_ITERATOR_HXX 10 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/list.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/qt/list.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_QT_LIST_HXX 5 | #define ODB_QT_LIST_HXX 6 | 7 | #include 8 | 9 | #endif // ODB_QT_LIST_HXX 10 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/mutable-list-iterator.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/qt/mutable-list-iterator.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_QT_MUTABLE_LIST_ITERATOR_HXX 5 | #define ODB_QT_MUTABLE_LIST_ITERATOR_HXX 6 | 7 | #include 8 | 9 | #endif // ODB_QT_MUTABLE_LIST_ITERATOR_HXX 10 | -------------------------------------------------------------------------------- /libodb-qt/odb/qt/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/libodb-qt/odb/qt/version.hxx -------------------------------------------------------------------------------- /libodb-qt/tests/.gitignore: -------------------------------------------------------------------------------- 1 | driver 2 | -------------------------------------------------------------------------------- /libodb-qt/tests/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/basics/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb-qt%lib{odb-qt} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs 7 | -------------------------------------------------------------------------------- /libodb-qt/tests/basics/driver.cxx: -------------------------------------------------------------------------------- 1 | // file : tests/basics/driver.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | // Basic test to make sure the library is usable. Functionality testing 5 | // is done in the odb-tests package. 6 | 7 | #include 8 | #include 9 | 10 | using namespace odb; 11 | 12 | int 13 | main () 14 | { 15 | try 16 | { 17 | throw qt::date_time::value_out_of_range (); 18 | } 19 | catch (const qt::exception&) 20 | { 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /libodb-qt/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-qt/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /libodb-qt/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} 5 | -------------------------------------------------------------------------------- /libodb-sqlite/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /libodb-sqlite/GPLv2: -------------------------------------------------------------------------------- 1 | ../GPLv2 -------------------------------------------------------------------------------- /libodb-sqlite/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /libodb-sqlite/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /libodb-sqlite/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-sqlite/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = libodb-sqlite 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /libodb-sqlite/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/sqlite/ 7 | } 8 | 9 | export $out_root/odb/sqlite/lib{odb-sqlite} 10 | -------------------------------------------------------------------------------- /libodb-sqlite/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} \ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{GPLv2 LICENSE} \ 7 | manifest 8 | 9 | # Don't install tests. 10 | # 11 | tests/: install = false 12 | -------------------------------------------------------------------------------- /libodb-sqlite/odb/sqlite/details/.gitignore: -------------------------------------------------------------------------------- 1 | /options.?xx 2 | -------------------------------------------------------------------------------- /libodb-sqlite/odb/sqlite/query-const-expr.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/sqlite/query-const-expr.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace sqlite 9 | { 10 | // Sun CC cannot handle this in query.cxx. 11 | // 12 | const query_base query_base::true_expr (true); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /libodb-sqlite/odb/sqlite/simple-object-statements.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/sqlite/simple-object-statements.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace sqlite 9 | { 10 | object_statements_base:: 11 | ~object_statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-sqlite/odb/sqlite/statements-base.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/sqlite/statements-base.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace sqlite 9 | { 10 | statements_base:: 11 | ~statements_base () 12 | { 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /libodb-sqlite/odb/sqlite/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/libodb-sqlite/odb/sqlite/version.hxx -------------------------------------------------------------------------------- /libodb-sqlite/tests/.gitignore: -------------------------------------------------------------------------------- 1 | driver 2 | -------------------------------------------------------------------------------- /libodb-sqlite/tests/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/basics/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb-sqlite%lib{odb-sqlite} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs 7 | -------------------------------------------------------------------------------- /libodb-sqlite/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb-sqlite/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /libodb-sqlite/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} 5 | -------------------------------------------------------------------------------- /libodb/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /libodb/GPLv2: -------------------------------------------------------------------------------- 1 | ../GPLv2 -------------------------------------------------------------------------------- /libodb/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /libodb/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /libodb/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = libodb 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /libodb/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/ 7 | } 8 | 9 | export $out_root/odb/lib{odb} 10 | -------------------------------------------------------------------------------- /libodb/build/root.build: -------------------------------------------------------------------------------- 1 | # file : build/root.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | cxx.std = latest 5 | 6 | using cxx 7 | 8 | hxx{*}: extension = hxx 9 | ixx{*}: extension = ixx 10 | txx{*}: extension = txx 11 | cxx{*}: extension = cxx 12 | 13 | if ($cxx.target.system == 'win32-msvc') 14 | cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS 15 | 16 | if ($cxx.class == 'msvc') 17 | cxx.coptions += /wd4251 /wd4275 /wd4800 18 | -------------------------------------------------------------------------------- /libodb/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} \ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{GPLv2 LICENSE} \ 7 | manifest 8 | 9 | # Don't install tests. 10 | # 11 | tests/: install = false 12 | -------------------------------------------------------------------------------- /libodb/odb/core.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/core.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_CORE_HXX 5 | #define ODB_CORE_HXX 6 | 7 | #include 8 | 9 | #ifdef ODB_COMPILER 10 | # define PRAGMA_DB_IMPL(x) _Pragma (#x) 11 | # define PRAGMA_DB(x) PRAGMA_DB_IMPL (db x) 12 | #else 13 | # define PRAGMA_DB(x) 14 | #endif 15 | 16 | #include 17 | 18 | #include 19 | 20 | #endif // ODB_CORE_HXX 21 | -------------------------------------------------------------------------------- /libodb/odb/details/condition.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/condition.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace details 9 | { 10 | // This otherwise unnecessary file is here to allow instantiation 11 | // of inline functions for exporting. 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /libodb/odb/details/config.h: -------------------------------------------------------------------------------- 1 | /* file : odb/details/config.h 2 | * license : GNU GPL v2; see accompanying LICENSE file 3 | */ 4 | 5 | /* Static configuration file for build2 build. 6 | * 7 | * Note that currently we only support ODB_THREADS_NONE and ODB_THREADS_CXX11 8 | * but could also support the _POSIX and _WIN32 variants with a bit of effort. 9 | */ 10 | 11 | #ifndef ODB_DETAILS_CONFIG_H 12 | #define ODB_DETAILS_CONFIG_H 13 | 14 | #ifndef ODB_THREADS_NONE 15 | # define ODB_THREADS_CXX11 16 | #endif 17 | 18 | #endif /* ODB_DETAILS_CONFIG_H */ 19 | -------------------------------------------------------------------------------- /libodb/odb/details/exception.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/exception.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_DETAILS_EXCEPTION_HXX 5 | #define ODB_DETAILS_EXCEPTION_HXX 6 | 7 | #include 8 | 9 | #include 10 | 11 | namespace odb 12 | { 13 | namespace details 14 | { 15 | struct exception: odb::exception {}; 16 | } 17 | } 18 | 19 | #include 20 | 21 | #endif // ODB_DETAILS_EXCEPTION_HXX 22 | -------------------------------------------------------------------------------- /libodb/odb/details/lock.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/lock.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace details 9 | { 10 | // This otherwise unnecessary file is here to allow instantiation 11 | // of inline functions for exporting. 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /libodb/odb/details/meta/answer.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/meta/answer.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_DETAILS_META_ANSWER_HXX 5 | #define ODB_DETAILS_META_ANSWER_HXX 6 | 7 | #include 8 | 9 | namespace odb 10 | { 11 | namespace details 12 | { 13 | namespace meta 14 | { 15 | struct yes 16 | { 17 | char filling; 18 | }; 19 | 20 | struct no 21 | { 22 | char filling[2]; 23 | }; 24 | } 25 | } 26 | } 27 | 28 | #include 29 | 30 | #endif // ODB_DETAILS_META_ANSWER_HXX 31 | -------------------------------------------------------------------------------- /libodb/odb/details/mutex.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/mutex.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace details 9 | { 10 | // This otherwise unnecessary file is here to allow instantiation 11 | // of inline functions for exporting. 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /libodb/odb/details/posix/exceptions.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/posix/exceptions.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace details 9 | { 10 | const char* posix_exception:: 11 | what () const ODB_NOTHROW_NOEXCEPT 12 | { 13 | return "POSIX API error"; 14 | } 15 | 16 | posix_exception* posix_exception:: 17 | clone () const 18 | { 19 | return new posix_exception (*this); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /libodb/odb/details/posix/tls.ixx: -------------------------------------------------------------------------------- 1 | // file : odb/details/posix/tls.ixx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | namespace odb 5 | { 6 | namespace details 7 | { 8 | template 9 | inline tls:: 10 | tls () 11 | { 12 | } 13 | 14 | template 15 | inline tls:: 16 | tls () 17 | { 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /libodb/odb/details/shared-ptr-fwd.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/shared-ptr-fwd.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_DETAILS_SHARED_PTR_FWD_HXX 5 | #define ODB_DETAILS_SHARED_PTR_FWD_HXX 6 | 7 | #include 8 | 9 | #include 10 | 11 | namespace odb 12 | { 13 | namespace details 14 | { 15 | template 16 | class shared_ptr; 17 | 18 | class shared_base; 19 | } 20 | } 21 | 22 | #include 23 | 24 | #endif // ODB_DETAILS_SHARED_PTR_FWD_HXX 25 | -------------------------------------------------------------------------------- /libodb/odb/details/shared-ptr/counter-type.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/shared-ptr/counter-type.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_DETAILS_SHARED_PTR_COUNTER_TYPE_HXX 5 | #define ODB_DETAILS_SHARED_PTR_COUNTER_TYPE_HXX 6 | 7 | #include 8 | 9 | namespace odb 10 | { 11 | namespace details 12 | { 13 | template 14 | struct counter_type 15 | { 16 | typedef X counter; 17 | }; 18 | } 19 | } 20 | 21 | #include 22 | 23 | #endif // ODB_DETAILS_SHARED_PTR_COUNTER_TYPE_HXX 24 | -------------------------------------------------------------------------------- /libodb/odb/details/thread.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/thread.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | // We might be compiled with ODB_THREADS_NONE. 7 | // 8 | #ifdef ODB_THREADS_CXX11 9 | 10 | namespace odb 11 | { 12 | namespace details 13 | { 14 | void thread:: 15 | thunk (void* (*f) (void*), void* a, std::promise p) 16 | { 17 | p.set_value (f (a)); 18 | } 19 | } 20 | } 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /libodb/odb/details/win32/exceptions.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/win32/exceptions.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | namespace details 9 | { 10 | const char* win32_exception:: 11 | what () const ODB_NOTHROW_NOEXCEPT 12 | { 13 | return "Win32 API error"; 14 | } 15 | 16 | win32_exception* win32_exception:: 17 | clone () const 18 | { 19 | return new win32_exception (*this); 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /libodb/odb/details/win32/once-init.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/win32/once-init.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_DETAILS_WIN32_ONCE_INIT_HXX 5 | #define ODB_DETAILS_WIN32_ONCE_INIT_HXX 6 | 7 | #include 8 | 9 | namespace odb 10 | { 11 | namespace details 12 | { 13 | void 14 | once_process_start (); 15 | 16 | void 17 | once_process_end (bool safe); 18 | } 19 | } 20 | 21 | #include 22 | 23 | #endif // ODB_DETAILS_WIN32_ONCE_INIT_HXX 24 | -------------------------------------------------------------------------------- /libodb/odb/details/win32/tls-init.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/details/win32/tls-init.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ODB_DETAILS_WIN32_TLS_INIT_HXX 5 | #define ODB_DETAILS_WIN32_TLS_INIT_HXX 6 | 7 | #include 8 | 9 | namespace odb 10 | { 11 | namespace details 12 | { 13 | void 14 | tls_process_start (); 15 | 16 | void 17 | tls_process_end (bool safe); 18 | 19 | void 20 | tls_thread_end (); 21 | } 22 | } 23 | 24 | #include 25 | 26 | #endif // ODB_DETAILS_WIN32_TLS_INIT_HXX 27 | -------------------------------------------------------------------------------- /libodb/odb/details/win32/tls.ixx: -------------------------------------------------------------------------------- 1 | // file : odb/details/win32/tls.ixx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | namespace odb 5 | { 6 | namespace details 7 | { 8 | template 9 | inline tls:: 10 | tls () 11 | { 12 | } 13 | 14 | template 15 | inline tls:: 16 | tls () 17 | { 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /libodb/odb/no-id-object-result.txx: -------------------------------------------------------------------------------- 1 | // file : odb/no-id-object-result.txx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | namespace odb 5 | { 6 | // 7 | // object_result_impl 8 | // 9 | 10 | template 11 | void no_id_object_result_impl:: 12 | load () 13 | { 14 | // Objects without ids are not stored in session cache. 15 | // 16 | pointer_type p (object_traits::create ()); 17 | object_type& obj (pointer_traits::get_ref (p)); 18 | current (p); 19 | load (obj); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /libodb/odb/polymorphic-map.ixx: -------------------------------------------------------------------------------- 1 | // file : odb/polymorphic-map.ixx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | namespace odb 5 | { 6 | template 7 | inline polymorphic_entry:: 8 | polymorphic_entry () 9 | { 10 | polymorphic_entry_impl::insert (object_traits::info); 11 | } 12 | 13 | template 14 | inline polymorphic_entry:: 15 | ~polymorphic_entry () 16 | { 17 | polymorphic_entry_impl::erase (object_traits::info); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /libodb/odb/post.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/post.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifdef _MSC_VER 5 | # pragma warning (pop) 6 | #endif 7 | -------------------------------------------------------------------------------- /libodb/odb/query-dynamic.ixx: -------------------------------------------------------------------------------- 1 | // file : odb/query-dynamic.ixx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | namespace odb 5 | { 6 | // query_base 7 | // 8 | inline query_base:: 9 | query_base (const query_column& c) 10 | { 11 | // Some databases provide the IS TRUE operator. However, we cannot 12 | // use it since the column type might now be SQL boolean type. 13 | // 14 | append (c.native_info); 15 | append_val (true, c.native_info); 16 | append (query_base::clause_part::op_eq, 0); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /libodb/odb/statement.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/statement.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #include 5 | 6 | namespace odb 7 | { 8 | statement:: 9 | ~statement () 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /libodb/odb/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/libodb/odb/version.hxx -------------------------------------------------------------------------------- /libodb/tests/.gitignore: -------------------------------------------------------------------------------- 1 | driver 2 | -------------------------------------------------------------------------------- /libodb/tests/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/basics/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb%lib{odb} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs 7 | -------------------------------------------------------------------------------- /libodb/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /libodb/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /libodb/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/} 5 | -------------------------------------------------------------------------------- /odb-examples/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | 27 | # Example executables. 28 | # 29 | driver 30 | 31 | # ODB-generated files. 32 | # 33 | *-odb.?xx 34 | *.sql 35 | 36 | # Testscript output directories (can be symlinks). 37 | # 38 | test 39 | test-driver 40 | -------------------------------------------------------------------------------- /odb-examples/LICENSE: -------------------------------------------------------------------------------- 1 | Not copyrighted - public domain. 2 | 3 | You should have received a copy of the UNLICENSE document along with 4 | this program with the terms and conditions; if not, contact Code Synthesis 5 | at info@codesynthesis.com. 6 | -------------------------------------------------------------------------------- /odb-examples/UNLICENSE: -------------------------------------------------------------------------------- 1 | ../UNLICENSE -------------------------------------------------------------------------------- /odb-examples/access/testscript: -------------------------------------------------------------------------------- 1 | # file : access/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/boost/testscript: -------------------------------------------------------------------------------- 1 | # file : boost/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /odb-examples/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : not copyrighted - public domain 3 | 4 | project = odb-examples 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /odb-examples/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : not copyrighted - public domain 3 | 4 | ./: {*/ -build/ -boost/ -qt/} doc{README.md} legal{UNLICENSE LICENSE} manifest 5 | 6 | ./: boost/: include = $boost 7 | ./: qt/: include = $qt 8 | 9 | ./: testscript{*}: include = adhoc 10 | -------------------------------------------------------------------------------- /odb-examples/c++11/testscript: -------------------------------------------------------------------------------- 1 | # file : cxx11/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/composite/testscript: -------------------------------------------------------------------------------- 1 | # file : composite/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/container-nested/testscript: -------------------------------------------------------------------------------- 1 | # file : container-nested/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/container/testscript: -------------------------------------------------------------------------------- 1 | # file : container/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/hello/testscript: -------------------------------------------------------------------------------- 1 | # file : hello/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/inheritance/polymorphism/employee.cxx: -------------------------------------------------------------------------------- 1 | // file : inheritance/polymorphism/employee.cxx 2 | // copyright : not copyrighted - public domain 3 | 4 | #include 5 | 6 | #include "employee.hxx" 7 | 8 | using namespace std; 9 | 10 | person:: 11 | ~person () 12 | { 13 | } 14 | 15 | void employee:: 16 | print () 17 | { 18 | cout << first_ << ' ' << last_ 19 | << (temporary_ ? " temporary " : " permanent ") 20 | << "employee" << endl; 21 | } 22 | 23 | void contractor:: 24 | print () 25 | { 26 | cout << first_ << ' ' << last_ << ' ' << email_ << " contractor" << endl; 27 | } 28 | -------------------------------------------------------------------------------- /odb-examples/inheritance/polymorphism/testscript: -------------------------------------------------------------------------------- 1 | # file : inheritance/polymorphism/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../../database-options.testscript 5 | .include ../../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/inheritance/reuse/testscript: -------------------------------------------------------------------------------- 1 | # file : inheritance/reuse/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../../database-options.testscript 5 | .include ../../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/inverse/testscript: -------------------------------------------------------------------------------- 1 | # file : inverse/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/mapping/testscript: -------------------------------------------------------------------------------- 1 | # file : mapping/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/mssql-schema.testscript: -------------------------------------------------------------------------------- 1 | # file : mssql-schema.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Create the Microsoft SQL Server database schema creation canned command base. 5 | # 6 | create_schema_cmd = [cmdline] $mssql_client_cmd 7 | -------------------------------------------------------------------------------- /odb-examples/mssql.testscript: -------------------------------------------------------------------------------- 1 | # file : mssql.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Create the Microsoft SQL Server database schema creation canned command and 5 | # setup the example driver command line for the subsequent examples. 6 | # 7 | .include mssql-schema.testscript 8 | 9 | schema_file = [path] $out_base/"$schema".sql 10 | create_schema = [cmdline] $create_schema_cmd -i $schema_file 11 | 12 | test.arguments += $mssql_options 13 | -------------------------------------------------------------------------------- /odb-examples/mysql-schema.testscript: -------------------------------------------------------------------------------- 1 | # file : mysql-schema.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Create the MySQL database schema creation canned command base. 5 | # 6 | create_schema_cmd = [cmdline] \ 7 | $mysql_client_cmd 2>&1 | \ 8 | sed -e "'"'s/^mysql: \[Warning\] Using a password on the command .*//'"'" | \ 9 | sed -n -e "'"'s/(.+)/\1/p'"'" >&2 10 | -------------------------------------------------------------------------------- /odb-examples/mysql.testscript: -------------------------------------------------------------------------------- 1 | # file : mysql.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Create the MySQL database schema creation canned command and setup the 5 | # example driver command line for the subsequent examples. 6 | # 7 | .include mysql-schema.testscript 8 | 9 | schema_file = [path] $out_base/"$schema".sql 10 | create_schema = [cmdline] cat "'""$schema_file""'" | $create_schema_cmd 11 | 12 | test.arguments += $mysql_options 13 | -------------------------------------------------------------------------------- /odb-examples/optimistic/testscript: -------------------------------------------------------------------------------- 1 | # file : optimistic/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/oracle-schema.testscript: -------------------------------------------------------------------------------- 1 | # file : oracle-schema.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Create the Oracle database schema creation canned command base. 5 | # 6 | create_schema_cmd = [cmdline] $oracle_client_cmd 7 | -------------------------------------------------------------------------------- /odb-examples/oracle.testscript: -------------------------------------------------------------------------------- 1 | # file : oracle.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Create the Oracle database schema creation canned command and setup the 5 | # example driver command line for the subsequent examples. 6 | # 7 | .include oracle-schema.testscript 8 | 9 | schema_file = [path] $out_base/"$schema".sql 10 | create_schema = [cmdline] $create_schema_cmd "@$schema_file" 11 | 12 | test.arguments += $oracle_options 13 | -------------------------------------------------------------------------------- /odb-examples/pgsql-schema.testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql-schema.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Create the PostgreSQL database schema creation canned command base. 5 | # 6 | create_schema_cmd = [cmdline] $pgsql_client_cmd 7 | -------------------------------------------------------------------------------- /odb-examples/pgsql.testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Create the PostgreSQL database schema creation canned command and setup the 5 | # example driver command line for the subsequent tests. 6 | # 7 | .include pgsql-schema.testscript 8 | 9 | schema_file = [path] $out_base/"$schema".sql 10 | create_schema = [cmdline] $create_schema_cmd -f $schema_file 11 | 12 | test.arguments += $pgsql_options 13 | -------------------------------------------------------------------------------- /odb-examples/pimpl/testscript: -------------------------------------------------------------------------------- 1 | # file : pimpl/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/prepared/testscript: -------------------------------------------------------------------------------- 1 | # file : prepared/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/qt/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/query/testscript: -------------------------------------------------------------------------------- 1 | # file : query/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/relationship/testscript: -------------------------------------------------------------------------------- 1 | # file : relationship/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/schema/custom/testscript: -------------------------------------------------------------------------------- 1 | # file : schema/custom/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../../database-options.testscript 5 | 6 | test.arguments += $($(database)_options) 7 | 8 | +if $sqlite 9 | test.cleanups += &odb-test.db 10 | 11 | : basics 12 | : 13 | $* >| 14 | -------------------------------------------------------------------------------- /odb-examples/schema/embedded/testscript: -------------------------------------------------------------------------------- 1 | # file : schema/embedded/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../../database-options.testscript 5 | 6 | test.arguments += $($(database)_options) 7 | 8 | +if $sqlite 9 | test.cleanups += &odb-test.db 10 | 11 | : basics 12 | : 13 | $* >| 14 | -------------------------------------------------------------------------------- /odb-examples/section/testscript: -------------------------------------------------------------------------------- 1 | # file : section/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-examples/sqlite-schema.testscript: -------------------------------------------------------------------------------- 1 | # Note that we currently don't manipulate the data using the sqlite3 utility. 2 | # The database schema is created implicitly by the database object creation 3 | # function called by the test driver. 4 | # 5 | #create_schema_cmd = 6 | -------------------------------------------------------------------------------- /odb-examples/sqlite.testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite.testscript 2 | # license : not copyrighted - public domain 3 | 4 | # Setup the example driver command line for the subsequent SQLite examples. 5 | # 6 | # Note that for SQLite the schema is created implicitly by the database object 7 | # creation function called by the test driver. 8 | # 9 | test.arguments += $sqlite_options 10 | test.cleanups += &odb-test.db # See database-options.testscript for details. 11 | -------------------------------------------------------------------------------- /odb-examples/view/testscript: -------------------------------------------------------------------------------- 1 | # file : view/testscript 2 | # license : not copyrighted - public domain 3 | 4 | .include ../database-options.testscript 5 | .include ../$(database).testscript 6 | 7 | +if! $sqlite 8 | $create_schema 9 | 10 | : basics 11 | : 12 | $* >| 13 | -------------------------------------------------------------------------------- /odb-tests/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | 27 | # Test executables. 28 | # 29 | driver 30 | 31 | # ODB-generated files. 32 | # 33 | test-odb.?xx 34 | test-odb-*.?xx 35 | test.sql 36 | test-*.sql 37 | 38 | # Testscript output directories (can be symlinks). 39 | # 40 | test 41 | test-driver 42 | -------------------------------------------------------------------------------- /odb-tests/GPLv2: -------------------------------------------------------------------------------- 1 | ../GPLv2 -------------------------------------------------------------------------------- /odb-tests/boost/buildfile: -------------------------------------------------------------------------------- 1 | # file : boost/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: common/ 5 | 6 | ./: mysql/: include = ($mysql && !$multi) 7 | ./: sqlite/: include = ($sqlite && !$multi) 8 | ./: pgsql/: include = ($pgsql && !$multi) 9 | ./: oracle/: include = ($oracle && !$multi) 10 | ./: mssql/: include = ($mssql && !$multi) 11 | -------------------------------------------------------------------------------- /odb-tests/boost/common/optional/test.hxx: -------------------------------------------------------------------------------- 1 | // file : boost/common/optional/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | 9 | #include 10 | 11 | #include 12 | 13 | #pragma db object 14 | struct object 15 | { 16 | object (unsigned long id) 17 | : id_ (id) 18 | { 19 | } 20 | 21 | object () 22 | { 23 | } 24 | 25 | #pragma db id 26 | unsigned long id_; 27 | 28 | boost::optional str; 29 | }; 30 | 31 | #endif // TEST_HXX 32 | -------------------------------------------------------------------------------- /odb-tests/boost/mssql/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : boost/mssql/date-time/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../mssql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/boost/mysql/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : boost/mysql/date-time/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../mysql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/boost/oracle/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : boost/oracle/date-time/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../oracle.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/boost/pgsql/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : boost/pgsql/date-time/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../pgsql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/boost/sqlite/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : boost/sqlite/date-time/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /odb-tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | project = odb-tests 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /odb-tests/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include libcommon/ 7 | } 8 | 9 | export $out_root/libcommon/$import.target 10 | -------------------------------------------------------------------------------- /odb-tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: libcommon/ common/ doc{README.md} legal{GPLv2 LICENSE} manifest 5 | 6 | ./: mysql/: include = ($mysql && !$multi) 7 | ./: sqlite/: include = ($sqlite && !$multi) 8 | ./: pgsql/: include = ($pgsql && !$multi) 9 | ./: oracle/: include = ($oracle && !$multi) 10 | ./: mssql/: include = ($mssql && !$multi) 11 | 12 | ./: evolution/: include = (!$multi) 13 | 14 | ./: boost/: include = $boost 15 | ./: qt/: include = $qt 16 | 17 | ./: testscript{*}: include = adhoc 18 | -------------------------------------------------------------------------------- /odb-tests/common/buildfile: -------------------------------------------------------------------------------- 1 | # file : common/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -bulk/} 5 | 6 | ./: bulk/: include = (!$pgsql || $pgsql_bulk || $size($databases) != 1) 7 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/.gitignore: -------------------------------------------------------------------------------- 1 | # Generate ODB options file. 2 | # 3 | odb.options 4 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-mssql-diff.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-mssql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-mysql-diff.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-mysql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-oracle-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-pgsql-diff.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-pgsql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-sqlite-diff.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column-sqlite-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-column.hxx: -------------------------------------------------------------------------------- 1 | // file : common/changelog/add-column.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ADD_COLUMN_HXX 5 | #define ADD_COLUMN_HXX 6 | 7 | #pragma db model version(BVER, CVER, open) 8 | 9 | #pragma db object 10 | struct object 11 | { 12 | #pragma db id auto 13 | int id; 14 | 15 | #if CVER > 1 16 | int num; 17 | #endif 18 | }; 19 | 20 | #endif // ADD_COLUMN_HXX 21 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-foreign-key.hxx: -------------------------------------------------------------------------------- 1 | // file : common/changelog/add-foreign-key.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ADD_FOREIGN_KEY_HXX 5 | #define ADD_FOREIGN_KEY_HXX 6 | 7 | #pragma db model version(BVER, CVER, open) 8 | 9 | struct object1; 10 | 11 | #pragma db object 12 | struct object 13 | { 14 | #pragma db id auto 15 | int id; 16 | 17 | #if CVER > 1 18 | object1* o1; 19 | #endif 20 | }; 21 | 22 | #pragma db object 23 | struct object1 24 | { 25 | #pragma db id 26 | int id; 27 | }; 28 | 29 | #endif // ADD_FOREIGN_KEY_HXX 30 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/add-index.hxx: -------------------------------------------------------------------------------- 1 | // file : common/changelog/add-index.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ADD_INDEX_HXX 5 | #define ADD_INDEX_HXX 6 | 7 | #pragma db model version(BVER, CVER, open) 8 | 9 | #pragma db object 10 | struct object 11 | { 12 | #pragma db id auto 13 | int id; 14 | 15 | int x; 16 | 17 | #if CVER > 1 18 | int y; 19 | #pragma db index ("xy_i") unique member(x) member(y, "DESC") 20 | #endif 21 | 22 | }; 23 | 24 | #endif // ADD_INDEX_HXX 25 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/alter-column-mssql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/alter-column-mysql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/alter-column-oracle-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/alter-column-pgsql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/alter-column-sqlite-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/alter-column.hxx: -------------------------------------------------------------------------------- 1 | // file : common/changelog/alter-column.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef ALTER_COLUMN_HXX 5 | #define ALTER_COLUMN_HXX 6 | 7 | #pragma db model version(BVER, CVER, open) 8 | 9 | #pragma db object 10 | struct object 11 | { 12 | #pragma db id auto 13 | int id; 14 | 15 | #if CVER > 1 16 | #pragma db null 17 | #endif 18 | int num; 19 | }; 20 | 21 | #endif // ALTER_COLUMN_HXX 22 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-column-mssql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-column-mysql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-column-oracle-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-column-pgsql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-column-sqlite-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-column.hxx: -------------------------------------------------------------------------------- 1 | // file : common/changelog/drop-column.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef DROP_COLUMN_HXX 5 | #define DROP_COLUMN_HXX 6 | 7 | #pragma db model version(BVER, CVER, open) 8 | 9 | #pragma db object 10 | struct object 11 | { 12 | #pragma db id auto 13 | int id; 14 | 15 | #if CVER == 1 16 | int num; 17 | #endif 18 | }; 19 | 20 | #endif // DROP_COLUMN_HXX 21 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-foreign-key.hxx: -------------------------------------------------------------------------------- 1 | // file : common/changelog/drop-foreign-key.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef DROP_FOREIGN_KEY_HXX 5 | #define DROP_FOREIGN_KEY_HXX 6 | 7 | #pragma db model version(BVER, CVER, open) 8 | 9 | struct object1; 10 | 11 | #pragma db object 12 | struct object 13 | { 14 | #pragma db id auto 15 | int id; 16 | 17 | #if CVER == 1 18 | object1* o1; 19 | #endif 20 | }; 21 | 22 | #pragma db object 23 | struct object1 24 | { 25 | #pragma db id 26 | int id; 27 | }; 28 | 29 | #endif // DROP_FOREIGN_KEY_HXX 30 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-index-mssql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-index-mysql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-index-oracle-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-index-pgsql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-index-sqlite-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-index.hxx: -------------------------------------------------------------------------------- 1 | // file : common/changelog/drop-index.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef DROP_INDEX_HXX 5 | #define DROP_INDEX_HXX 6 | 7 | #pragma db model version(BVER, CVER, open) 8 | 9 | #pragma db object 10 | struct object 11 | { 12 | #pragma db id auto 13 | int id; 14 | 15 | #if CVER == 1 16 | #pragma db index 17 | #endif 18 | int num; 19 | }; 20 | 21 | #endif // DROP_INDEX_HXX 22 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-table-mssql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-table-mysql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-table-oracle-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-table-pgsql-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/drop-table-sqlite-patch.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 |
13 |
14 | -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-mssql-diff.xml: -------------------------------------------------------------------------------- 1 | model-mssql.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-mssql-patch.xml: -------------------------------------------------------------------------------- 1 | model-mssql.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-mysql-diff.xml: -------------------------------------------------------------------------------- 1 | model-mysql.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-mysql-patch.xml: -------------------------------------------------------------------------------- 1 | model-mysql.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-oracle-diff.xml: -------------------------------------------------------------------------------- 1 | model-oracle.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-oracle-patch.xml: -------------------------------------------------------------------------------- 1 | model-oracle.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-pgsql-diff.xml: -------------------------------------------------------------------------------- 1 | model-pgsql.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-pgsql-patch.xml: -------------------------------------------------------------------------------- 1 | model-pgsql.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-sqlite-diff.xml: -------------------------------------------------------------------------------- 1 | model-sqlite.xml -------------------------------------------------------------------------------- /odb-tests/common/changelog/model-sqlite-patch.xml: -------------------------------------------------------------------------------- 1 | model-sqlite.xml -------------------------------------------------------------------------------- /odb-tests/common/circular/buildfile: -------------------------------------------------------------------------------- 1 | # file : common/circular/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -multiple/} 5 | 6 | # We cannot support this case in multi-database support since we need to 7 | # generate extern template involving classes that participate in the cycle. 8 | # 9 | ./: multiple/: include = (!$multi) 10 | -------------------------------------------------------------------------------- /odb-tests/common/circular/multiple/.gitignore: -------------------------------------------------------------------------------- 1 | # ODB-generated files. 2 | # 3 | test1-odb.?xx 4 | test1-odb-*.?xx 5 | test2-odb.?xx 6 | test2-odb-*.?xx 7 | -------------------------------------------------------------------------------- /odb-tests/common/circular/multiple/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : common/circular/multiple/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #include 8 | 9 | #pragma db object 10 | struct derived; 11 | 12 | #pragma db object polymorphic 13 | struct base 14 | { 15 | virtual ~base () {} 16 | 17 | #pragma db id 18 | unsigned long id_; 19 | 20 | derived* d_; 21 | }; 22 | 23 | #ifdef ODB_COMPILER 24 | # include "test2.hxx" 25 | #endif 26 | 27 | #endif // TEST1_HXX 28 | -------------------------------------------------------------------------------- /odb-tests/common/circular/multiple/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : common/circular/multiple/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #include 8 | 9 | #include "test1.hxx" 10 | 11 | #pragma db object 12 | struct derived: base 13 | { 14 | base* b_; 15 | }; 16 | 17 | #endif // TEST2_HXX 18 | -------------------------------------------------------------------------------- /odb-tests/common/circular/single/test.hxx: -------------------------------------------------------------------------------- 1 | // file : common/circular/single/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | 9 | struct derived; 10 | 11 | #pragma db object polymorphic 12 | struct base 13 | { 14 | virtual ~base () {} 15 | 16 | #pragma db id 17 | unsigned long id_; 18 | 19 | derived* d_; 20 | }; 21 | 22 | #pragma db object 23 | struct derived: base 24 | { 25 | base* b_; 26 | }; 27 | 28 | #endif // TEST_HXX 29 | -------------------------------------------------------------------------------- /odb-tests/common/definition/.gitignore: -------------------------------------------------------------------------------- 1 | # ODB-generated files. 2 | # 3 | time-mapping-odb.?xx 4 | time-mapping-odb-*.?xx 5 | time-mapping.sql 6 | time-mapping-*.sql 7 | -------------------------------------------------------------------------------- /odb-tests/common/definition/test.hxx: -------------------------------------------------------------------------------- 1 | // file : common/definition/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #ifdef _WIN32 8 | # include // timeval 9 | #else 10 | # include // timeval 11 | #endif 12 | 13 | #include 14 | 15 | #include "time-mapping.hxx" 16 | 17 | #pragma db object 18 | struct object 19 | { 20 | #pragma db id auto 21 | unsigned long id; 22 | 23 | timeval time; 24 | }; 25 | 26 | #endif // TEST_HXX 27 | -------------------------------------------------------------------------------- /odb-tests/common/definition/time-mapping.hxx: -------------------------------------------------------------------------------- 1 | // file : common/definition/time-mapping.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TIME_MAPPING_HXX 5 | #define TIME_MAPPING_HXX 6 | 7 | #ifdef _WIN32 8 | # include // timeval 9 | #else 10 | # include // timeval 11 | #endif 12 | 13 | #pragma db value(timeval) definition 14 | #pragma db member(timeval::tv_sec) column("sec") 15 | #pragma db member(timeval::tv_usec) column("usec") 16 | 17 | #endif // TIME_MAPPING_HXX 18 | -------------------------------------------------------------------------------- /odb-tests/common/include/.gitignore: -------------------------------------------------------------------------------- 1 | # ODB-generated files. 2 | # 3 | obj1-odb.?xx 4 | obj1-odb-*.?xx 5 | obj2-odb.?xx 6 | obj2-odb-*.?xx 7 | obj3-odb.?xx 8 | obj3-odb-*.?xx 9 | 10 | test1-odb.?xx 11 | test1-odb-*.?xx 12 | test2-odb.?xx 13 | test2-odb-*.?xx 14 | test3-odb.?xx 15 | test3-odb-*.?xx 16 | test4-odb.?xx 17 | test4-odb-*.?xx 18 | -------------------------------------------------------------------------------- /odb-tests/common/include/obj1.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/obj1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef OBJ1_HXX 5 | #define OBJ1_HXX 6 | 7 | #include 8 | 9 | #pragma db object 10 | struct object1 11 | { 12 | object1 (unsigned long id) 13 | : id_ (id) 14 | { 15 | } 16 | 17 | object1 () 18 | { 19 | } 20 | 21 | #pragma db id 22 | unsigned long id_; 23 | }; 24 | 25 | #endif // OBJ1_HXX 26 | -------------------------------------------------------------------------------- /odb-tests/common/include/obj2.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/obj2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef OBJ2_HXX 5 | #define OBJ2_HXX 6 | 7 | #include 8 | 9 | #pragma db object 10 | struct object2 11 | { 12 | object2 (unsigned long id) 13 | : id_ (id) 14 | { 15 | } 16 | 17 | object2 () 18 | { 19 | } 20 | 21 | #pragma db id 22 | unsigned long id_; 23 | }; 24 | 25 | #endif // OBJ2_HXX 26 | -------------------------------------------------------------------------------- /odb-tests/common/include/obj3.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/obj3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef OBJ3_HXX 5 | #define OBJ3_HXX 6 | 7 | #include 8 | 9 | #pragma db object 10 | struct object3 11 | { 12 | object3 (unsigned long id) 13 | : id_ (id) 14 | { 15 | } 16 | 17 | object3 () 18 | { 19 | } 20 | 21 | #pragma db id 22 | unsigned long id_; 23 | }; 24 | 25 | #endif // OBJ3_HXX 26 | -------------------------------------------------------------------------------- /odb-tests/common/include/objs1.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/objs1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef OBJS1_HXX 5 | #define OBJS1_HXX 6 | 7 | #ifdef ODB_COMPILER 8 | # include 9 | # include 10 | # include 11 | #endif 12 | 13 | #endif // OBJS1_HXX 14 | -------------------------------------------------------------------------------- /odb-tests/common/include/objs2.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/objs2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef OBJS2_HXX 5 | #define OBJS2_HXX 6 | 7 | #ifdef ODB_COMPILER 8 | # include "include/obj1.hxx" 9 | # include "include/obj2.hxx" 10 | # include "include/obj3.hxx" 11 | #endif 12 | 13 | #endif // OBJS2_HXX 14 | -------------------------------------------------------------------------------- /odb-tests/common/include/objs3.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/objs3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef OBJS3_HXX 5 | #define OBJS3_HXX 6 | 7 | #include "../include/obj1.hxx" 8 | #include "../include/obj2.hxx" 9 | #include "../include/obj3.hxx" 10 | 11 | #endif // OBJS3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/common/include/objs4.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/objs1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef OBJS4_HXX 5 | #define OBJS4_HXX 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | #endif // OBJS4_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/common/include/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | // Test include directive parsing. 8 | // 9 | #include"obj1.hxx" 10 | 11 | # include \ 12 | 13 | 14 | /*comment*/ # /*comment*/ include /* comment */ "obj3.hxx" // comment 15 | 16 | #endif // TEST1_HXX 17 | -------------------------------------------------------------------------------- /odb-tests/common/include/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | // Test preference of includes from the main file. 8 | // 9 | #include "objs1.hxx" 10 | 11 | #include "obj1.hxx" 12 | #include "obj2.hxx" 13 | #include "obj3.hxx" 14 | 15 | #endif // TEST2_HXX 16 | -------------------------------------------------------------------------------- /odb-tests/common/include/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | // Test preference of longer (more qualified) paths. 8 | // 9 | #include "objs2.hxx" 10 | #include "objs3.hxx" 11 | 12 | #endif // TEST3_HXX 13 | -------------------------------------------------------------------------------- /odb-tests/common/include/test4.hxx: -------------------------------------------------------------------------------- 1 | // file : common/include/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | // Test preference of <> over "". 8 | // 9 | #include "objs2.hxx" 10 | #include "objs4.hxx" 11 | 12 | #endif // TEST3_HXX 13 | -------------------------------------------------------------------------------- /odb-tests/common/lifecycle/test.hxx: -------------------------------------------------------------------------------- 1 | // file : common/lifecycle/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | #include 9 | 10 | #pragma db object 11 | struct object 12 | { 13 | object (unsigned long id) 14 | : id_ (id) 15 | { 16 | } 17 | 18 | object () 19 | { 20 | } 21 | 22 | #pragma db id 23 | unsigned long id_; 24 | std::string str_; 25 | }; 26 | 27 | #endif // TEST_HXX 28 | -------------------------------------------------------------------------------- /odb-tests/common/no-id/test.hxx: -------------------------------------------------------------------------------- 1 | // file : common/no-id/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | 9 | #include 10 | 11 | #pragma db object no_id 12 | struct object 13 | { 14 | object () {} 15 | object (unsigned long n, const std::string& s): num (n), str (s) {} 16 | 17 | unsigned long num; 18 | std::string str; 19 | }; 20 | 21 | #endif // TEST_HXX 22 | -------------------------------------------------------------------------------- /odb-tests/common/pragma/driver.cxx: -------------------------------------------------------------------------------- 1 | // file : common/pragma/driver.cxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | // Test #pragma db parsing. 5 | // 6 | 7 | #include 8 | #include 9 | 10 | #include 11 | #include 12 | 13 | #include 14 | 15 | #include "test.hxx" 16 | #include "test-odb.hxx" 17 | 18 | #undef NDEBUG 19 | #include 20 | 21 | using namespace std; 22 | using namespace odb::core; 23 | 24 | int 25 | main () 26 | { 27 | } 28 | -------------------------------------------------------------------------------- /odb-tests/common/query/one/test.hxx: -------------------------------------------------------------------------------- 1 | // file : common/query/one/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | 9 | #pragma db object 10 | struct object 11 | { 12 | object (unsigned long id) 13 | : id_ (id) 14 | { 15 | } 16 | 17 | object () 18 | { 19 | } 20 | 21 | #pragma db id 22 | unsigned long id_; 23 | std::string str_; 24 | }; 25 | 26 | #endif // TEST_HXX 27 | -------------------------------------------------------------------------------- /odb-tests/common/schema/embedded/basics/test.hxx: -------------------------------------------------------------------------------- 1 | // file : common/schema/embedded/basics/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | #include 9 | 10 | #include 11 | 12 | #pragma db object 13 | struct object 14 | { 15 | #pragma db auto id 16 | unsigned long id; 17 | 18 | std::string str; 19 | 20 | std::vector nums; 21 | }; 22 | 23 | #endif // TEST_HXX 24 | -------------------------------------------------------------------------------- /odb-tests/common/schema/embedded/order/.gitignore: -------------------------------------------------------------------------------- 1 | # ODB-generated files. 2 | # 3 | test1-odb.?xx 4 | test1-odb-*.?xx 5 | test2-odb.?xx 6 | test2-odb-*.?xx 7 | -------------------------------------------------------------------------------- /odb-tests/common/schema/embedded/order/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : common/schema/embedded/order/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #include 8 | 9 | #include 10 | 11 | #pragma db object polymorphic 12 | struct base 13 | { 14 | virtual 15 | ~base () {} 16 | 17 | #pragma db auto id 18 | unsigned long id; 19 | 20 | std::string str; 21 | }; 22 | 23 | #endif // TEST1_HXX 24 | -------------------------------------------------------------------------------- /odb-tests/common/schema/embedded/order/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : common/schema/embedded/order/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #include 8 | 9 | #include "test1.hxx" 10 | 11 | #pragma db object 12 | struct derived: base 13 | { 14 | int num; 15 | }; 16 | 17 | #endif // TEST2_HXX 18 | -------------------------------------------------------------------------------- /odb-tests/common/statement/processing/buildfile: -------------------------------------------------------------------------------- 1 | # file : common/statement/processing/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb%lib{odb} 5 | 6 | exe{driver}: {hxx cxx}{*} $libs testscript 7 | 8 | cxx.poptions =+ "-I$out_base" "-I$src_base" 9 | -------------------------------------------------------------------------------- /odb-tests/common/statement/processing/testscript: -------------------------------------------------------------------------------- 1 | # file : common/statement/processing/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | : basics 5 | : 6 | $* 7 | -------------------------------------------------------------------------------- /odb-tests/common/threads/test.hxx: -------------------------------------------------------------------------------- 1 | // file : common/template/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | 9 | #include 10 | 11 | #pragma db object 12 | struct object 13 | { 14 | object (unsigned long id, const std::string& str) 15 | : id_ (id), str_ (str) 16 | { 17 | } 18 | 19 | object () 20 | { 21 | } 22 | 23 | #pragma db id 24 | unsigned long id_; 25 | 26 | std::string str_; 27 | }; 28 | 29 | #endif // TEST_HXX 30 | -------------------------------------------------------------------------------- /odb-tests/common/transaction/basics/buildfile: -------------------------------------------------------------------------------- 1 | # file : common/transaction/basics/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb%lib{odb} 5 | import libs += lib{common} 6 | 7 | exe{driver}: {hxx cxx}{*} $libs testscript 8 | 9 | cxx.poptions =+ "-I$out_base" "-I$src_base" 10 | 11 | # Testscript's run-time prerequisites. 12 | # 13 | exe{driver}: ../../../alias{database-client}: include = adhoc 14 | -------------------------------------------------------------------------------- /odb-tests/common/transaction/callback/buildfile: -------------------------------------------------------------------------------- 1 | # file : common/transaction/callback/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | import libs = libodb%lib{odb} 5 | import libs += lib{common} 6 | 7 | exe{driver}: {hxx cxx}{*} $libs testscript 8 | 9 | cxx.poptions =+ "-I$out_base" "-I$src_base" 10 | 11 | # Testscript's run-time prerequisites. 12 | # 13 | exe{driver}: ../../../alias{database-client}: include = adhoc 14 | -------------------------------------------------------------------------------- /odb-tests/common/types/testscript: -------------------------------------------------------------------------------- 1 | # file : common/types/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | : basic 5 | : 6 | $* 7 | -------------------------------------------------------------------------------- /odb-tests/evolution/.gitignore: -------------------------------------------------------------------------------- 1 | # ODB-generated files. 2 | # 3 | test1-odb.?xx 4 | test1.sql 5 | model.xml 6 | 7 | test2-odb.?xx 8 | test2.sql 9 | 10 | test3-odb.?xx 11 | test3.sql 12 | test3-002-post.sql 13 | test3-002-pre.sql 14 | test3-003-post.sql 15 | test3-003-pre.sql 16 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-column/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-column/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-column/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-column/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-column/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-column/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-foreign-key/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-foreign-key/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-foreign-key/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-foreign-key/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-foreign-key/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-foreign-key/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-index/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-index/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-index/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-index/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-index/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-index/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-table/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-table/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-table/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-table/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/add-table/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/add-table/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/alter-column/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/alter-column/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/alter-column/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/alter-column/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/alter-column/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/alter-column/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/combined/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/combined/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/combined/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/combined/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/combined/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/combined/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/data/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/data/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/data/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/data/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/data/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/data/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-column/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-column/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-column/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-column/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-column/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-column/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-foreign-key/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-foreign-key/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-foreign-key/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-foreign-key/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-foreign-key/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-foreign-key/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-index/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-index/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-index/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-index/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-index/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-index/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-table/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-table/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-table/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-table/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/drop-table/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/drop-table/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/embedded/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/embedded/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/embedded/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/embedded/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/embedded/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/embedded/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/embedded/testscript: -------------------------------------------------------------------------------- 1 | # file : evolution/embedded/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | 6 | test.arguments += $($(db)_options) 7 | 8 | : basics 9 | : 10 | if! $sqlite 11 | { 12 | $* 1 13 | $* 2 14 | $* 3 15 | } 16 | else 17 | { 18 | $* 1 &odb-test.db 19 | $* 2 20 | $* 3 21 | } 22 | -------------------------------------------------------------------------------- /odb-tests/evolution/soft-add/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/soft-add/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/soft-add/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/soft-add/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/soft-add/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/soft-add/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/soft-delete/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/soft-delete/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/soft-delete/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/soft-delete/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/soft-delete/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/soft-delete/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/version/test1.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/version/test1.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST1_HXX 5 | #define TEST1_HXX 6 | 7 | #pragma db model version(1, 1) 8 | 9 | #endif // TEST1_HXX 10 | -------------------------------------------------------------------------------- /odb-tests/evolution/version/test2.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/version/test2.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST2_HXX 5 | #define TEST2_HXX 6 | 7 | #define MODEL_VERSION 2 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST2_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/evolution/version/test3.hxx: -------------------------------------------------------------------------------- 1 | // file : evolution/version/test3.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST3_HXX 5 | #define TEST3_HXX 6 | 7 | #define MODEL_VERSION 3 8 | #include "model.hxx" 9 | #undef MODEL_VERSION 10 | 11 | #endif // TEST3_HXX 12 | -------------------------------------------------------------------------------- /odb-tests/libcommon/.gitignore: -------------------------------------------------------------------------------- 1 | # Generated config header. 2 | # 3 | config.hxx 4 | -------------------------------------------------------------------------------- /odb-tests/libcommon/config.hxx.in: -------------------------------------------------------------------------------- 1 | // file : libcommon/config.hxx.in 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef LIBCOMMON_CONFIG_HXX 5 | #define LIBCOMMON_CONFIG_HXX 6 | 7 | #undef DATABASE_MYSQL 8 | #undef DATABASE_SQLITE 9 | #undef DATABASE_PGSQL 10 | #undef DATABASE_ORACLE 11 | #undef DATABASE_MSSQL 12 | #undef MULTI_DATABASE 13 | 14 | #endif // LIBCOMMON_CONFIG_HXX 15 | -------------------------------------------------------------------------------- /odb-tests/mssql-schema.testscript: -------------------------------------------------------------------------------- 1 | # file : mssql-schema.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Create the Microsoft SQL Server database schema creation canned command base. 5 | # 6 | create_schema_cmd = [cmdline] $mssql_client_cmd 7 | -------------------------------------------------------------------------------- /odb-tests/mssql.testscript: -------------------------------------------------------------------------------- 1 | # file : mssql.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Create the Microsoft SQL Server database schema creation canned command and 5 | # setup the test driver command line for the subsequent tests. 6 | # 7 | .include mssql-schema.testscript 8 | 9 | schema_file = [path] $out_base/"$schema"($multi ? '-mssql' : '').sql 10 | create_schema = [cmdline] $create_schema_cmd -i $schema_file 11 | 12 | test.arguments += ($multi ? 'mssql' : ) $mssql_options 13 | -------------------------------------------------------------------------------- /odb-tests/mssql/custom/testscript: -------------------------------------------------------------------------------- 1 | # file : mssql/custom/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mssql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/mssql/database/buildfile: -------------------------------------------------------------------------------- 1 | # file : mssql/database/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | if ($build.meta_operation != 'dist') 5 | { 6 | assert ($mssql) "mssql should be configured for this test" 7 | assert (!$multi) "multi-database mode is not supported by this test" 8 | } 9 | 10 | import libs = libodb-mssql%lib{odb-mssql} 11 | 12 | exe{driver}: {hxx cxx}{*} $libs testscript 13 | 14 | cxx.poptions =+ "-I$out_base" "-I$src_base" 15 | -------------------------------------------------------------------------------- /odb-tests/mssql/database/testscript: -------------------------------------------------------------------------------- 1 | # file : mssql/database/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mssql.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/mssql/native/buildfile: -------------------------------------------------------------------------------- 1 | # file : mssql/native/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | if ($build.meta_operation != 'dist') 5 | { 6 | assert ($mssql) "mssql should be configured for this test" 7 | assert (!$multi) "multi-database mode is not supported by this test" 8 | } 9 | 10 | import libs = libodb-mssql%lib{odb-mssql} 11 | import libs += lib{common} 12 | 13 | exe{driver}: {hxx cxx}{*} $libs testscript 14 | 15 | cxx.poptions =+ "-I$out_base" "-I$src_base" 16 | -------------------------------------------------------------------------------- /odb-tests/mssql/native/testscript: -------------------------------------------------------------------------------- 1 | # file : mssql/native/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mssql.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/mssql/query/testscript: -------------------------------------------------------------------------------- 1 | # file : mssql/query/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mssql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/mssql/stored-proc/testscript: -------------------------------------------------------------------------------- 1 | # file : mssql/stored-proc/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mssql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* >>EOO 12 | 1 a 13 | 2 b 14 | 3 c 15 | 16 | a 17 | b 18 | 19 | 1 3 20 | 21 | 4 d 22 | 23 | 5 e 24 | 25 | 123 6 26 | 27 | 123 7 28 | 29 | EOO 30 | -------------------------------------------------------------------------------- /odb-tests/mssql/types/testscript: -------------------------------------------------------------------------------- 1 | # file : mssql/types/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mssql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/mysql-schema.testscript: -------------------------------------------------------------------------------- 1 | # file : mysql-schema.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Create the MySQL database schema creation canned command base. 5 | # 6 | create_schema_cmd = [cmdline] \ 7 | $mysql_client_cmd 2>&1 | \ 8 | sed -e "'"'s/^mysql: \[Warning\] Using a password on the command .*//'"'" | \ 9 | sed -n -e "'"'s/(.+)/\1/p'"'" >&2 10 | -------------------------------------------------------------------------------- /odb-tests/mysql.testscript: -------------------------------------------------------------------------------- 1 | # file : mysql.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Create the MySQL database schema creation canned command and setup the test 5 | # driver command line for the subsequent tests. 6 | # 7 | .include mysql-schema.testscript 8 | 9 | schema_file = [path] $out_base/"$schema"($multi ? '-mysql' : '').sql 10 | create_schema = [cmdline] cat "'""$schema_file""'" | $create_schema_cmd 11 | 12 | test.arguments += ($multi ? 'mysql' : ) $mysql_options 13 | -------------------------------------------------------------------------------- /odb-tests/mysql/custom/testscript: -------------------------------------------------------------------------------- 1 | # file : mysql/custom/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mysql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/mysql/database/buildfile: -------------------------------------------------------------------------------- 1 | # file : mysql/database/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | if ($build.meta_operation != 'dist') 5 | { 6 | assert ($mysql) "mysql should be configured for this test" 7 | assert (!$multi) "multi-database mode is not supported by this test" 8 | } 9 | 10 | import libs = libodb-mysql%lib{odb-mysql} 11 | 12 | exe{driver}: {hxx cxx}{*} $libs testscript 13 | 14 | cxx.poptions =+ "-I$out_base" "-I$src_base" 15 | -------------------------------------------------------------------------------- /odb-tests/mysql/database/testscript: -------------------------------------------------------------------------------- 1 | # file : mysql/database/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | : basics 5 | : 6 | $* 7 | -------------------------------------------------------------------------------- /odb-tests/mysql/index/test.hxx: -------------------------------------------------------------------------------- 1 | // file : mysql/template/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | #include 9 | 10 | #pragma db object 11 | struct object 12 | { 13 | #pragma db id auto 14 | unsigned long id_; 15 | 16 | std::string s; 17 | #pragma db index method("BTREE") member(s, "(200) DESC") 18 | }; 19 | 20 | #endif // TEST_HXX 21 | -------------------------------------------------------------------------------- /odb-tests/mysql/index/testscript: -------------------------------------------------------------------------------- 1 | # file : mysql/index/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mysql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/mysql/native/testscript: -------------------------------------------------------------------------------- 1 | # file : mysql/native/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mysql.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/mysql/truncation/testscript: -------------------------------------------------------------------------------- 1 | # file : mysql/truncation/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mysql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/mysql/types/testscript: -------------------------------------------------------------------------------- 1 | # file : mysql/types/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../mysql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/oracle-schema.testscript: -------------------------------------------------------------------------------- 1 | # file : oracle-schema.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Create the Oracle database schema creation canned command base. 5 | # 6 | create_schema_cmd = [cmdline] $oracle_client_cmd 7 | -------------------------------------------------------------------------------- /odb-tests/oracle.testscript: -------------------------------------------------------------------------------- 1 | # file : oracle.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Create the Oracle database schema creation canned command and setup the test 5 | # driver command line for the subsequent tests. 6 | # 7 | .include oracle-schema.testscript 8 | 9 | schema_file = [path] $out_base/"$schema"($multi ? '-oracle' : '').sql 10 | create_schema = [cmdline] $create_schema_cmd "@$schema_file" 11 | 12 | test.arguments += ($multi ? 'oracle' : ) $oracle_options 13 | -------------------------------------------------------------------------------- /odb-tests/oracle/custom/testscript: -------------------------------------------------------------------------------- 1 | # file : oracle/custom/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../oracle.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/oracle/database/buildfile: -------------------------------------------------------------------------------- 1 | # file : oracle/database/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | if ($build.meta_operation != 'dist') 5 | { 6 | assert ($oracle) "oracle should be configured for this test" 7 | assert (!$multi) "multi-database mode is not supported by this test" 8 | } 9 | 10 | import libs = libodb-oracle%lib{odb-oracle} 11 | 12 | exe{driver}: {hxx cxx}{*} $libs testscript 13 | 14 | cxx.poptions =+ "-I$out_base" "-I$src_base" 15 | -------------------------------------------------------------------------------- /odb-tests/oracle/database/testscript: -------------------------------------------------------------------------------- 1 | # file : oracle/database/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../oracle.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/oracle/native/buildfile: -------------------------------------------------------------------------------- 1 | # file : oracle/native/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | if ($build.meta_operation != 'dist') 5 | { 6 | assert ($oracle) "oracle should be configured for this test" 7 | assert (!$multi) "multi-database mode is not supported by this test" 8 | } 9 | 10 | import libs = libodb-oracle%lib{odb-oracle} 11 | import libs += lib{common} 12 | 13 | exe{driver}: {hxx cxx}{*} $libs testscript 14 | 15 | cxx.poptions =+ "-I$out_base" "-I$src_base" 16 | -------------------------------------------------------------------------------- /odb-tests/oracle/native/testscript: -------------------------------------------------------------------------------- 1 | # file : oracle/native/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../oracle.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/oracle/types/testscript: -------------------------------------------------------------------------------- 1 | # file : oracle/types/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../oracle.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/pgsql-schema.testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql-schema.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Create the PostgreSQL database schema creation canned command base. 5 | # 6 | create_schema_cmd = [cmdline] $pgsql_client_cmd 7 | -------------------------------------------------------------------------------- /odb-tests/pgsql.testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Create the PostgreSQL database schema creation canned command and setup the 5 | # test driver command line for the subsequent tests. 6 | # 7 | .include pgsql-schema.testscript 8 | 9 | schema_file = [path] $out_base/"$schema"($multi ? '-pgsql' : '').sql 10 | create_schema = [cmdline] $create_schema_cmd -f $schema_file 11 | 12 | test.arguments += ($multi ? 'pgsql' : ) $pgsql_options 13 | -------------------------------------------------------------------------------- /odb-tests/pgsql/buildfile: -------------------------------------------------------------------------------- 1 | # file : pgsql/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: {*/ -bulk/} 5 | 6 | ./: bulk/: include = ($pgsql && !$multi && $pgsql_bulk) 7 | -------------------------------------------------------------------------------- /odb-tests/pgsql/bulk/test.hxx: -------------------------------------------------------------------------------- 1 | // file : pgsql/savepoint/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | 9 | #include 10 | 11 | #pragma db object bulk(1000) 12 | struct object 13 | { 14 | /* 15 | object (unsigned long id) 16 | : id_ (id) 17 | { 18 | } 19 | 20 | object () 21 | { 22 | } 23 | */ 24 | 25 | #pragma db id //auto 26 | unsigned long id; 27 | 28 | unsigned long idata; 29 | 30 | //#pragma db 31 | std::string sdata; 32 | }; 33 | 34 | #endif // TEST_HXX 35 | -------------------------------------------------------------------------------- /odb-tests/pgsql/bulk/testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql/custom/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../pgsql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | { 12 | $* 13 | 14 | $* --fail-already-persistent 2>>EOE != 0 15 | multiple exceptions, 252 elements attempted, 1 failed, fatal: 16 | [251] object already persistent 17 | EOE 18 | } 19 | -------------------------------------------------------------------------------- /odb-tests/pgsql/custom/testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql/custom/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../pgsql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/pgsql/database/buildfile: -------------------------------------------------------------------------------- 1 | # file : pgsql/database/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | if ($build.meta_operation != 'dist') 5 | { 6 | assert ($pgsql) "pgsql should be configured for this test" 7 | assert (!$multi) "multi-database mode is not supported by this test" 8 | } 9 | 10 | import libs = libodb-pgsql%lib{odb-pgsql} 11 | 12 | exe{driver}: {hxx cxx}{*} $libs testscript 13 | 14 | cxx.poptions =+ "-I$out_base" "-I$src_base" 15 | -------------------------------------------------------------------------------- /odb-tests/pgsql/database/testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql/database/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | : basics 5 | : 6 | $* 7 | -------------------------------------------------------------------------------- /odb-tests/pgsql/index/test.hxx: -------------------------------------------------------------------------------- 1 | // file : pgsql/index/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | 9 | #pragma db object 10 | struct object 11 | { 12 | #pragma db id auto 13 | unsigned long id_; 14 | 15 | int i; 16 | #pragma db index type("UNIQUE CONCURRENTLY") method("BTREE") member(i) 17 | }; 18 | 19 | #endif // TEST_HXX 20 | -------------------------------------------------------------------------------- /odb-tests/pgsql/index/testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql/index/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../pgsql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/pgsql/native/testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql/custom/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../pgsql.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/pgsql/truncation/testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql/truncation/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../pgsql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/pgsql/types/testscript: -------------------------------------------------------------------------------- 1 | # file : pgsql/types/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../pgsql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/buildfile: -------------------------------------------------------------------------------- 1 | # file : qt/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | ./: common/ 5 | 6 | ./: mysql/: include = ($mysql && !$multi) 7 | ./: sqlite/: include = ($sqlite && !$multi) 8 | ./: pgsql/: include = ($pgsql && !$multi) 9 | ./: oracle/: include = ($oracle && !$multi) 10 | ./: mssql/: include = ($mssql && !$multi) 11 | -------------------------------------------------------------------------------- /odb-tests/qt/mssql/basic/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/mssql/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../mssql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/mssql/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/mssql/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../mssql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/mysql/basic/test.hxx: -------------------------------------------------------------------------------- 1 | // file : qt/mysql/basic/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | #include 9 | 10 | #pragma db object 11 | struct object 12 | { 13 | bool 14 | operator== (const object& x) const 15 | { 16 | return 17 | str == x.str && 18 | blob == x.blob; 19 | } 20 | 21 | #pragma db id 22 | QString str; 23 | 24 | QByteArray blob; 25 | }; 26 | 27 | #endif // TEST_HXX 28 | -------------------------------------------------------------------------------- /odb-tests/qt/mysql/basic/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/mysql/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../mysql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/mysql/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/mysql/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../mysql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/oracle/basic/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/oracle/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../oracle.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/oracle/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/oracle/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../oracle.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/pgsql/basic/test.hxx: -------------------------------------------------------------------------------- 1 | // file : qt/pgsql/basic/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | #include 9 | 10 | #pragma db object 11 | struct object 12 | { 13 | bool 14 | operator== (const object& x) const 15 | { 16 | return 17 | str == x.str && 18 | blob == x.blob; 19 | } 20 | 21 | #pragma db id 22 | QString str; 23 | 24 | QByteArray blob; 25 | }; 26 | 27 | #endif // TEST_HXX 28 | -------------------------------------------------------------------------------- /odb-tests/qt/pgsql/basic/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/pgsql/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../pgsql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/pgsql/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/pgsql/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../pgsql.testscript 6 | 7 | +$create_schema 8 | 9 | : basics 10 | : 11 | $* 12 | -------------------------------------------------------------------------------- /odb-tests/qt/sqlite/basic/test.hxx: -------------------------------------------------------------------------------- 1 | // file : qt/sqlite/basic/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | #include 9 | 10 | #pragma db object 11 | struct object 12 | { 13 | bool 14 | operator== (const object& x) const 15 | { 16 | return 17 | str == x.str && 18 | blob == x.blob; 19 | } 20 | 21 | #pragma db id 22 | QString str; 23 | 24 | QByteArray blob; 25 | }; 26 | 27 | #endif // TEST_HXX 28 | -------------------------------------------------------------------------------- /odb-tests/qt/sqlite/basic/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/sqlite/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/qt/sqlite/date-time/testscript: -------------------------------------------------------------------------------- 1 | # file : qt/sqlite/basic/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../../database-options.testscript 5 | .include ../../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/sqlite-schema.testscript: -------------------------------------------------------------------------------- 1 | # Note that we currently don't manipulate the data using the sqlite3 utility. 2 | # The database schema is created implicitly by the database object creation 3 | # function called by the test driver. 4 | # 5 | #create_schema_cmd = 6 | -------------------------------------------------------------------------------- /odb-tests/sqlite.testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite.testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | # Setup the test driver command line for the subsequent SQLite tests. 5 | # 6 | # Note that for SQLite the schema is created implicitly by the database object 7 | # creation function called by the test driver. 8 | # 9 | test.arguments += ($multi ? 'sqlite' : ) $sqlite_options 10 | test.cleanups += &odb-test.db # See database-options.testscript for details. 11 | -------------------------------------------------------------------------------- /odb-tests/sqlite/attach/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/attach/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/sqlite/auto/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/auto/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/sqlite/custom/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/custom/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/sqlite/database/buildfile: -------------------------------------------------------------------------------- 1 | # file : sqlite/database/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | if ($build.meta_operation != 'dist') 5 | { 6 | assert ($sqlite) "sqlite should be configured for this test" 7 | assert (!$multi) "multi-database mode is not supported by this test" 8 | } 9 | 10 | import libs = libodb-sqlite%lib{odb-sqlite} 11 | 12 | exe{driver}: {hxx cxx}{*} $libs testscript 13 | 14 | cxx.poptions =+ "-I$out_base" "-I$src_base" 15 | -------------------------------------------------------------------------------- /odb-tests/sqlite/database/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/database/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | : basics 5 | : 6 | $* 7 | -------------------------------------------------------------------------------- /odb-tests/sqlite/native/buildfile: -------------------------------------------------------------------------------- 1 | # file : sqlite/native/buildfile 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | if ($build.meta_operation != 'dist') 5 | { 6 | assert ($sqlite) "sqlite should be configured for this test" 7 | assert (!$multi) "multi-database mode is not supported by this test" 8 | } 9 | 10 | import libs = libodb-sqlite%lib{odb-sqlite} 11 | import libs += lib{common} 12 | 13 | exe{driver}: {hxx cxx}{*} $libs testscript 14 | 15 | cxx.poptions =+ "-I$out_base" "-I$src_base" 16 | -------------------------------------------------------------------------------- /odb-tests/sqlite/native/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/native/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/sqlite/stream/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/stream/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/sqlite/transaction/test.hxx: -------------------------------------------------------------------------------- 1 | // file : sqlite/transaction/test.hxx 2 | // license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | #ifndef TEST_HXX 5 | #define TEST_HXX 6 | 7 | #include 8 | #include 9 | 10 | #pragma db object 11 | struct object1 12 | { 13 | #pragma db id 14 | unsigned long id_; 15 | }; 16 | 17 | #pragma db object 18 | struct object 19 | { 20 | #pragma db id auto 21 | unsigned long id_; 22 | 23 | odb::lazy_ptr p; 24 | }; 25 | 26 | #endif // TEST_HXX 27 | -------------------------------------------------------------------------------- /odb-tests/sqlite/transaction/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/transaction/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/sqlite/truncation/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/truncation/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb-tests/sqlite/types/testscript: -------------------------------------------------------------------------------- 1 | # file : sqlite/types/testscript 2 | # license : GNU GPL v2; see accompanying LICENSE file 3 | 4 | .include ../../database-options.testscript 5 | .include ../../sqlite.testscript 6 | 7 | : basics 8 | : 9 | $* 10 | -------------------------------------------------------------------------------- /odb/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiler/linker output. 2 | # 3 | *.d 4 | *.t 5 | *.i 6 | *.i.* 7 | *.ii 8 | *.ii.* 9 | *.o 10 | *.obj 11 | *.gcm 12 | *.pcm 13 | *.ifc 14 | *.so 15 | *.dylib 16 | *.dll 17 | *.a 18 | *.lib 19 | *.exp 20 | *.pdb 21 | *.ilk 22 | *.exe 23 | *.exe.dlls/ 24 | *.exe.manifest 25 | *.pc 26 | -------------------------------------------------------------------------------- /odb/GPLv3: -------------------------------------------------------------------------------- 1 | ../GPLv3 -------------------------------------------------------------------------------- /odb/NEWS: -------------------------------------------------------------------------------- 1 | ../NEWS -------------------------------------------------------------------------------- /odb/PACKAGE-README.md: -------------------------------------------------------------------------------- 1 | ../PACKAGE-README.md -------------------------------------------------------------------------------- /odb/README.md: -------------------------------------------------------------------------------- 1 | # odb - ODB compiler 2 | 3 | ODB is an open-source, cross-platform, and cross-database object-relational 4 | mapping (ORM) system for C++. It allows you to persist C++ classes to a 5 | relational database without having to deal with tables, columns, or SQL and 6 | without manually writing any mapping code. 7 | 8 | For further information, including licensing conditions, documentation, and 9 | binary packages, refer to the [ODB project 10 | page](https://codesynthesis.com/products/odb/). 11 | 12 | This package contains the ODB compiler. 13 | -------------------------------------------------------------------------------- /odb/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /odb/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : build/bootstrap.build 2 | # license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | project = odb 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | using install 11 | -------------------------------------------------------------------------------- /odb/build/export.build: -------------------------------------------------------------------------------- 1 | # file : build/export.build 2 | # license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | $out_root/ 5 | { 6 | include odb/ 7 | } 8 | 9 | export $out_root/odb/exe{odb} 10 | -------------------------------------------------------------------------------- /odb/buildfile: -------------------------------------------------------------------------------- 1 | # file : buildfile 2 | # license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | ./: {*/ -build/ -m4/} \ 5 | doc{README.md PACKAGE-README.md NEWS} \ 6 | legal{GPLv3 LICENSE} \ 7 | manifest 8 | 9 | # bbot worker hook script (see bindist-windows build configuration for 10 | # details). 11 | # 12 | ./: build/file{bindist-archive-post.bx} 13 | 14 | # Don't install tests. 15 | # 16 | tests/: install = false 17 | -------------------------------------------------------------------------------- /odb/doc/.gitignore: -------------------------------------------------------------------------------- 1 | /odb.1 2 | /odb.xhtml 3 | 4 | *.ps 5 | *.pdf 6 | -------------------------------------------------------------------------------- /odb/doc/odb-arch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/odb/doc/odb-arch.png -------------------------------------------------------------------------------- /odb/doc/odb-flow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/odb/doc/odb-flow.png -------------------------------------------------------------------------------- /odb/odb/.gitignore: -------------------------------------------------------------------------------- 1 | /odb 2 | /options.?xx 3 | -------------------------------------------------------------------------------- /odb/odb/generate.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/generate.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_GENERATE_HXX 5 | #define ODB_GENERATE_HXX 6 | 7 | namespace include 8 | { 9 | bool 10 | generate (bool header); 11 | } 12 | 13 | namespace header 14 | { 15 | void 16 | generate (); 17 | } 18 | 19 | namespace inline_ 20 | { 21 | void 22 | generate (); 23 | } 24 | 25 | namespace source 26 | { 27 | void 28 | generate (); 29 | } 30 | 31 | #endif // ODB_GENERATE_HXX 32 | -------------------------------------------------------------------------------- /odb/odb/generator.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/generator.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_GENERATOR_HXX 5 | #define ODB_GENERATOR_HXX 6 | 7 | #include 8 | 9 | #include 10 | #include 11 | #include 12 | 13 | class generator_failed {}; 14 | 15 | void 16 | generate (options const&, 17 | features&, 18 | semantics::unit&, 19 | semantics::path const& file, 20 | std::vector const& inputs); 21 | 22 | #endif // ODB_GENERATOR_HXX 23 | -------------------------------------------------------------------------------- /odb/odb/location.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/location.cxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #include 5 | #include 6 | 7 | location:: 8 | location (location_t l) 9 | : file (location_file (l)), 10 | line (location_line (l)), 11 | column (location_column (l)) 12 | { 13 | } 14 | -------------------------------------------------------------------------------- /odb/odb/location.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/location.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_LOCATION_HXX 5 | #define ODB_LOCATION_HXX 6 | 7 | #include 8 | 9 | #include 10 | #include 11 | 12 | struct location 13 | { 14 | location (location_t); 15 | location (cutl::fs::path const& f, std::size_t l, std::size_t c) 16 | : file (f), line (l), column (c) 17 | { 18 | } 19 | 20 | cutl::fs::path file; 21 | std::size_t line; 22 | std::size_t column; 23 | }; 24 | 25 | #endif // ODB_LOCATION_HXX 26 | -------------------------------------------------------------------------------- /odb/odb/option-functions.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/option-functions.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_OPTION_FUNCTIONS_HXX 5 | #define ODB_OPTION_FUNCTIONS_HXX 6 | 7 | #include 8 | 9 | void 10 | process_options (options&); 11 | 12 | #endif // ODB_OPTION_FUNCTIONS_HXX 13 | -------------------------------------------------------------------------------- /odb/odb/relational/processor.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/relational/processor.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_RELATIONAL_PROCESSOR_HXX 5 | #define ODB_RELATIONAL_PROCESSOR_HXX 6 | 7 | namespace relational 8 | { 9 | // Issues diagnostics and throws operation_failed in case of an error. 10 | // 11 | void 12 | process (); 13 | } 14 | 15 | #endif // ODB_RELATIONAL_PROCESSOR_HXX 16 | -------------------------------------------------------------------------------- /odb/odb/semantics/elements.ixx: -------------------------------------------------------------------------------- 1 | // file : odb/semantics/elements.ixx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | namespace semantics 5 | { 6 | // typedefs 7 | // 8 | inline typedefs::type_type& typedefs:: 9 | type () const 10 | { 11 | return dynamic_cast (named ()); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /odb/odb/traversal/namespace.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/traversal/namespace.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_TRAVERSAL_NAMESPACE_HXX 5 | #define ODB_TRAVERSAL_NAMESPACE_HXX 6 | 7 | #include 8 | #include 9 | 10 | namespace traversal 11 | { 12 | struct namespace_: scope_template {}; 13 | } 14 | 15 | #endif // ODB_TRAVERSAL_NAMESPACE_HXX 16 | -------------------------------------------------------------------------------- /odb/odb/traversal/relational/changeset.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/traversal/relational/changeset.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_TRAVERSAL_RELATIONAL_CHANGESET_HXX 5 | #define ODB_TRAVERSAL_RELATIONAL_CHANGESET_HXX 6 | 7 | #include 8 | #include 9 | 10 | namespace traversal 11 | { 12 | namespace relational 13 | { 14 | struct changeset: scope_template {}; 15 | } 16 | } 17 | 18 | #endif // ODB_TRAVERSAL_RELATIONAL_CHANGESET_HXX 19 | -------------------------------------------------------------------------------- /odb/odb/traversal/relational/key.cxx: -------------------------------------------------------------------------------- 1 | // file : odb/traversal/relational/key.cxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #include 5 | #include 6 | 7 | namespace traversal 8 | { 9 | namespace relational 10 | { 11 | void contains:: 12 | traverse (type& c) 13 | { 14 | dispatch (c.column ()); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /odb/odb/traversal/relational/model.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/traversal/relational/model.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_TRAVERSAL_RELATIONAL_MODEL_HXX 5 | #define ODB_TRAVERSAL_RELATIONAL_MODEL_HXX 6 | 7 | #include 8 | #include 9 | 10 | namespace traversal 11 | { 12 | namespace relational 13 | { 14 | struct model: scope_template {}; 15 | } 16 | } 17 | 18 | #endif // ODB_TRAVERSAL_RELATIONAL_MODEL_HXX 19 | -------------------------------------------------------------------------------- /odb/odb/traversal/relational/primary-key.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/traversal/relational/primary-key.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_TRAVERSAL_RELATIONAL_PRIMARY_KEY_HXX 5 | #define ODB_TRAVERSAL_RELATIONAL_PRIMARY_KEY_HXX 6 | 7 | #include 8 | #include 9 | 10 | namespace traversal 11 | { 12 | namespace relational 13 | { 14 | struct primary_key: key_template {}; 15 | } 16 | } 17 | 18 | #endif // ODB_TRAVERSAL_RELATIONAL_PRIMARY_KEY_HXX 19 | -------------------------------------------------------------------------------- /odb/odb/traversal/union.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/traversal/union.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_TRAVERSAL_UNION_HXX 5 | #define ODB_TRAVERSAL_UNION_HXX 6 | 7 | #include 8 | #include 9 | 10 | namespace traversal 11 | { 12 | struct union_: scope_template {}; 13 | } 14 | 15 | #endif // ODB_TRAVERSAL_UNION_HXX 16 | -------------------------------------------------------------------------------- /odb/odb/traversal/unit.hxx: -------------------------------------------------------------------------------- 1 | // file : odb/traversal/unit.hxx 2 | // license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | #ifndef ODB_TRAVERSAL_UNIT_HXX 5 | #define ODB_TRAVERSAL_UNIT_HXX 6 | 7 | #include 8 | #include 9 | 10 | namespace traversal 11 | { 12 | struct unit: scope_template {}; 13 | } 14 | 15 | #endif // ODB_TRAVERSAL_UNIT_HXX 16 | -------------------------------------------------------------------------------- /odb/odb/version.hxx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codesynthesis-com/odb/c5996c0eabadf5925e0fb215c26591f86c31e808/odb/odb/version.hxx -------------------------------------------------------------------------------- /odb/tests/.gitignore: -------------------------------------------------------------------------------- 1 | test/ 2 | test-*/ 3 | -------------------------------------------------------------------------------- /odb/tests/build/.gitignore: -------------------------------------------------------------------------------- 1 | config.build 2 | root/ 3 | bootstrap/ 4 | -------------------------------------------------------------------------------- /odb/tests/build/bootstrap.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/bootstrap.build 2 | # license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | project = # Unnamed subproject. 5 | 6 | using version 7 | using config 8 | using dist 9 | using test 10 | -------------------------------------------------------------------------------- /odb/tests/build/root.build: -------------------------------------------------------------------------------- 1 | # file : tests/build/root.build 2 | # license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | # We need to configure C++ module to obtain the target information (see 5 | # below). 6 | # 7 | using cxx.config 8 | 9 | # Import the ODB compiler we will be testing. 10 | # 11 | import! [metadata] odb = odb%exe{odb} 12 | testscript{*}: test = $odb 13 | 14 | # Specify the test target for cross-testing. 15 | # 16 | test.target = $cxx.target 17 | -------------------------------------------------------------------------------- /odb/tests/buildfile: -------------------------------------------------------------------------------- 1 | # file : tests/buildfile 2 | # license : GNU GPL v3; see accompanying LICENSE file 3 | 4 | ./: testscript $odb 5 | -------------------------------------------------------------------------------- /packages.manifest: -------------------------------------------------------------------------------- 1 | : 1 2 | location: odb/ 3 | : 4 | location: libodb/ 5 | : 6 | location: libodb-mysql/ 7 | : 8 | location: libodb-sqlite/ 9 | : 10 | location: libodb-pgsql/ 11 | : 12 | location: libodb-oracle/ 13 | : 14 | location: libodb-mssql/ 15 | : 16 | location: libodb-boost/ 17 | : 18 | location: libodb-qt/ 19 | : 20 | location: odb-tests/ 21 | : 22 | location: odb-examples/ 23 | --------------------------------------------------------------------------------