ODB compiler tests
ODB is an open-source, cross-platform, and cross-database object-relational mapping (ORM) system for C++. It allows you to persist C++ classes to a relational database without having to deal with tables, columns, or SQL and without manually writing any mapping code.
For further information, including licensing conditions, documentation, and binary packages, refer to the ODB project page.
This package contains tests for the ODB compiler as well as runtime and profile libraries.
Setting up PostgreSQL for running tests
-
Install the PostgreSQL server. On Linux this is normally done using distribution packages.
-
In
/etc/postgresql/N/main/pg_hba.conf
add the following line after thelocal all postgres ...
line:local odb_test odb_test trust
If you want to be able to run tests on a different host and access PostgreSQL via TCP/IP, also add the following line (adjusting the IP network to match your setup -- never specify a public IP network here since the access is unauthenticated):
host odb_test odb_test 192.168.0.0/24 trust
You will also need to edit
/etc/postgresql/N/main/postgresql.conf
and changelisten_address
to*
. You may also need to open port5432
in your firewall.Restart the PostgreSQL server.
-
Add the
odb_test
user and theodb_test
database.First login:
sudo -u postgres psql
Then execute the following statements:
CREATE USER odb_test; CREATE DATABASE odb_test; GRANT ALL PRIVILEGES ON DATABASE odb_test TO odb_test; \c odb_test GRANT ALL PRIVILEGES ON SCHEMA public TO odb_test;
Setting up MySQL for running tests
-
Install the MySQL server. On Linux this is normally done using distribution packages.
-
Setup remote access (optional).
If you want to be able to run tests on a different host and access MySQL via TCP/IP (never do this on a public server since the access is unauthenticated), then edit
/etc/mysql/.../mysqld.cnf
, the[mysqld]
section, and changebind-address
to0.0.0.0
. You may also need to open port3306
in your firewall.Restart the MySQL server.
-
Add the
odb_test
user and theodb_test
database.First login:
sudo mysql
Then execute the following statements:
CREATE USER odb_test@'%'; CREATE USER odb_test@'localhost'; CREATE DATABASE odb_test; GRANT ALL PRIVILEGES ON odb_test.* TO odb_test@'%'; FLUSH PRIVILEGES;
version | 2.5.0 |
---|---|
license | GPL-2.0-only |
repository | https://pkg.cppget.org/1/stable |
download | odb-tests-2.5.0.tar.gz |
sha256 | 10d0ee977a7a77c7357b57f020ca3763c1e65f037a32e9e2ce5a930da79fed9f |
project | odb |
---|---|
url | www.codesynthesis.com/products/odb/ |
doc-url | www.codesynthesis.com/products/odb/doc/manual.xhtml |
src-url | git.codesynthesis.com/cgit/odb/odb/ |
odb-users@codesynthesis.comMailing list |
Depends (21)
* | odb == 2.5.0 |
---|---|
libodb == 2.5.0 | |
libodb-mysql == 2.5.0 ? ($mysql) | |
libodb-sqlite == 2.5.0 ? ($sqlite) | |
libodb-pgsql == 2.5.0 ? ($pgsql) | |
libodb-oracle == 2.5.0 ? ($oracle) | |
libodb-mssql == 2.5.0 ? ($mssql) | |
libodb-boost == 2.5.0 ? ($boost) | |
libodb-qt == 2.5.0 ? ($qt) | |
libboost-multi-index ? ($boost) | |
libboost-optional ? ($boost) | |
libboost-smart-ptr ? ($boost) | |
libboost-unordered ? ($boost) | |
libboost-uuid ? ($boost) | |
libboost-date-time ? ($boost) | |
libQt5Core ? ($qt && $qt_ver == 5) | |
libQt6Core ? ($qt && $qt_ver == 6) | |
libpq ? ($pgsql) | |
libpq >= 14.0.0 ? ($pgsql) | libpq >= 7.4.0 ? ($pgsql) | |
* | mysql-client >= 5.0.3 ? ($mysql) |
* | psql >= 7.4.0 ? ($pgsql) |
Requires (2)
* | sqlplus ? ($oracle) |
---|---|
* | sqlcmd ? ($mssql) |
Reviews
fail | 0 |
---|---|
pass | 1 |