aboutsummaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
Diffstat (limited to 'schema')
-rw-r--r--schema/custom/README8
-rw-r--r--schema/embedded/README8
2 files changed, 16 insertions, 0 deletions
diff --git a/schema/custom/README b/schema/custom/README
index 77febef..22a14cb 100644
--- a/schema/custom/README
+++ b/schema/custom/README
@@ -48,6 +48,14 @@ driver.cxx
and persists them in the database. Finally, the driver 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
+C++ compiler name):
+
+c++ -c employee-odb.cxx
+c++ -DDATABASE_MYSQL -c driver.cxx
+c++ -o driver driver.o employee-odb.o -lodb-mysql -lodb
+
To run the driver, using MySQL as an example, we can execute the following
command:
diff --git a/schema/embedded/README b/schema/embedded/README
index fc76d04..da99173 100644
--- a/schema/embedded/README
+++ b/schema/embedded/README
@@ -46,6 +46,14 @@ 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
+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
+
To run the driver, using MySQL as an example, we can execute the following
command: