aboutsummaryrefslogtreecommitdiff
path: root/boost
diff options
context:
space:
mode:
Diffstat (limited to 'boost')
-rw-r--r--boost/README6
-rw-r--r--boost/makefile2
2 files changed, 5 insertions, 3 deletions
diff --git a/boost/README b/boost/README
index 8e9f18f..848e40a 100644
--- a/boost/README
+++ b/boost/README
@@ -25,13 +25,15 @@ employee.sql
These files are generated by the ODB compiler from employee.hxx using the
following command line:
- odb -d <database> -p boost --generate-schema --generate-query employee.hxx
+ odb -d <database> -p boost --generate-schema --generate-query \
+ --generate-session employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
The -p option is used to instruct the ODB compiler to load the Boost
- profile.
+ profile. The --generate-session option is used to enable session support
+ for all the persistent classes in employee.hxx.
database.hxx
Contains the create_database() function which instantiates the concrete
diff --git a/boost/makefile b/boost/makefile
index aff6de1..aeb4f5f 100644
--- a/boost/makefile
+++ b/boost/makefile
@@ -59,7 +59,7 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
$(gen) $(dist): export odb_options += --database $(db_id) --profile boost \
---generate-query --generate-schema --table-prefix boost_
+--generate-query --generate-schema --generate-session --table-prefix boost_
$(gen): cpp_options := -I$(src_base)
$(gen): $(odb.l.cpp-options) $(odb_boost.l.cpp-options) $(boost.l.cpp-options)