diff options
Diffstat (limited to 'odb-examples/schema/embedded/README')
-rw-r--r-- | odb-examples/schema/embedded/README | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/odb-examples/schema/embedded/README b/odb-examples/schema/embedded/README index 10084a3..50c3f7e 100644 --- a/odb-examples/schema/embedded/README +++ b/odb-examples/schema/embedded/README @@ -17,7 +17,7 @@ person-odb.cxx --generate-query person.hxx Where <database> stands for the database system we are using, for example, - 'mysql'. + 'pgsql'. The --generate-schema option requests the generation of the database schema. The --schema-format option is used to instruct the ODB compiler to embed the @@ -46,16 +46,16 @@ driver.cxx objects, performs a database query, and prints the information about the returned objects. -To compile and link the example manually from the command line we can use -the following commands (using MySQL as an example; replace 'c++' with your +To compile and link the example manually from the command line we can use the +following commands (using PostgreSQL as an example; replace 'c++' with your C++ compiler name): c++ -c person-odb.cxx -c++ -DDATABASE_MYSQL -c driver.cxx -c++ -o driver driver.o person-odb.o -lodb-mysql -lodb +c++ -DDATABASE_PGSQL -c driver.cxx +c++ -o driver driver.o person-odb.o -lodb-pgsql -lodb -To run the driver, using MySQL as an example, we can execute the following -command: +To run the driver, using PostgreSQL as an example, we can execute the +following command: ./driver --user odb_test --database odb_test |