aboutsummaryrefslogtreecommitdiff
path: root/odb/relational/oracle/header.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-11-19 11:51:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-11-19 11:51:17 +0200
commite85b07722107d00e4a3182ff4d33274a617bb55a (patch)
treedf3e58ea27935b29813f18b976b05a4c095c73bb /odb/relational/oracle/header.cxx
parent4bf55482207ee5807907833829dc30af2d18770b (diff)
Implement bulk API code generation
Diffstat (limited to 'odb/relational/oracle/header.cxx')
-rw-r--r--odb/relational/oracle/header.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/odb/relational/oracle/header.cxx b/odb/relational/oracle/header.cxx
index 1004a4c..055ef7b 100644
--- a/odb/relational/oracle/header.cxx
+++ b/odb/relational/oracle/header.cxx
@@ -243,8 +243,16 @@ namespace relational
if (poly_derived || (abst && !poly))
return;
- os << "static const std::size_t batch = 1UL;"
- << endl;
+ // Bulk operations batch size.
+ //
+ {
+ unsigned long long b (c.count ("bulk")
+ ? c.get<unsigned long long> ("bulk")
+ : 1);
+
+ os << "static const std::size_t batch = " << b << "UL;"
+ << endl;
+ }
}
};
entry<class1> class1_entry_;