diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-19 11:51:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-11-19 11:51:17 +0200 |
commit | e85b07722107d00e4a3182ff4d33274a617bb55a (patch) | |
tree | df3e58ea27935b29813f18b976b05a4c095c73bb /odb/relational/processor.cxx | |
parent | 4bf55482207ee5807907833829dc30af2d18770b (diff) |
Implement bulk API code generation
Diffstat (limited to 'odb/relational/processor.cxx')
-rw-r--r-- | odb/relational/processor.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/relational/processor.cxx b/odb/relational/processor.cxx index d32f8e5..b70451a 100644 --- a/odb/relational/processor.cxx +++ b/odb/relational/processor.cxx @@ -1024,6 +1024,12 @@ namespace relational virtual void traverse_object (type& c) { + // Remove the bulk pragma if this database doesn't support bulk + // operations. + // + if (c.count ("bulk") && !generate_bulk) + c.remove ("bulk"); + // Process indexes. Here we need to do two things: resolve member // names to member paths and assign names to unnamed indexes. We // are also going to handle the special container indexes. |