aboutsummaryrefslogtreecommitdiff
path: root/view/README
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-04 17:23:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-04 17:23:54 +0200
commit0ac8f52ddfae8537651c65b8ab8b32db47756e74 (patch)
treebe6239b8e7f528c7c25a05f83af2ec806043fbd6 /view/README
parent613da395f986ff748448d5afc06319f84a734397 (diff)
Implement object loading views
See section 10.2 in the manual for details.
Diffstat (limited to 'view/README')
-rw-r--r--view/README5
1 files changed, 3 insertions, 2 deletions
diff --git a/view/README b/view/README
index 0ade8ea..cba23b9 100644
--- a/view/README
+++ b/view/README
@@ -28,13 +28,14 @@ employee.sql
following command line:
odb -d <database> --generate-schema --generate-query \
- --default-pointer std::tr1::shared_ptr employee.hxx
+ --default-pointer std::tr1::shared_ptr --generate-session employee.hxx
Where <database> stands for the database system we are using, for example,
'mysql'.
The --default-pointer option is used to make TR1 shared_ptr the default
- object pointer.
+ object pointer. The --generate-session option is used to enable session
+ support for all the objects which is required to use object loading views.
database.hxx
Contains the create_database() function which instantiates the concrete