aboutsummaryrefslogtreecommitdiff
path: root/qt/README
diff options
context:
space:
mode:
Diffstat (limited to 'qt/README')
-rw-r--r--qt/README10
1 files changed, 9 insertions, 1 deletions
diff --git a/qt/README b/qt/README
index 2b30003..bfbe632 100644
--- a/qt/README
+++ b/qt/README
@@ -26,7 +26,7 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb -d <database> -p qt --generate-schema --generate-query \
+ odb -d <database> --profile qt --generate-schema --generate-query \
--generate-session employee.hxx
Where <database> stands for the database system we are using, for example,
@@ -53,6 +53,14 @@ driver.cxx
the driver performs a database query which uses data member of the Qt
QString and QDate types in its criterion.
+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
+C++ compiler name):
+
+c++ -c employee-odb.cxx
+c++ -DDATABASE_MYSQL -c driver.cxx
+c++ -o driver driver.o employee-odb.o -lodb-qt -lodb-mysql -lodb -lQtCore
+
To run the example we may first need to create the database schema (for some
database systems, such as SQLite, the schema is embedded into the generated
code which makes this step unnecessary). Using MySQL as an example, this