diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 11:29:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-04-26 11:29:05 +0200 |
commit | 61ff4c0458fa0362e054970efbcc21d66240ccc9 (patch) | |
tree | 1a3376fce2d9a2f79583911529549c333fff23ea /qt/common/smart-ptr | |
parent | a93ad74833e3a99a1421fd695a01a1fb15d1f2dd (diff) |
Make session optional
Diffstat (limited to 'qt/common/smart-ptr')
-rw-r--r-- | qt/common/smart-ptr/driver.cxx | 1 | ||||
-rw-r--r-- | qt/common/smart-ptr/makefile | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/qt/common/smart-ptr/driver.cxx b/qt/common/smart-ptr/driver.cxx index 4af2c05..28ad9a2 100644 --- a/qt/common/smart-ptr/driver.cxx +++ b/qt/common/smart-ptr/driver.cxx @@ -13,6 +13,7 @@ #include <QtCore/QCoreApplication> #include <odb/database.hxx> +#include <odb/session.hxx> #include <odb/transaction.hxx> #include <common/common.hxx> diff --git a/qt/common/smart-ptr/makefile b/qt/common/smart-ptr/makefile index 0a35eae..8f3e087 100644 --- a/qt/common/smart-ptr/makefile +++ b/qt/common/smart-ptr/makefile @@ -44,7 +44,8 @@ gen := $(addprefix $(out_base)/,$(genf)) $(gen): $(odb) $(gen): odb := $(odb) $(gen) $(dist): export odb_options += --database $(db_id) \ ---profile qt/smart-ptr --generate-schema --table-prefix qt_smart_ptr_ +--profile qt/smart-ptr --generate-schema --generate-session \ +--table-prefix qt_smart_ptr_ $(gen): cpp_options := -I$(src_base) $(gen): $(common.l.cpp-options) $(odb_qt.l.cpp-options) \ $(qt_core.l.cpp-options) |