From 74bb67e9825e06b68e2f5499b68da2323cb5bb34 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 4 Oct 2012 11:33:49 +0200 Subject: Initial support for prepared queries --- odb/sqlite/query.hxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'odb/sqlite/query.hxx') diff --git a/odb/sqlite/query.hxx b/odb/sqlite/query.hxx index fdae3a2..eebc7c3 100644 --- a/odb/sqlite/query.hxx +++ b/odb/sqlite/query.hxx @@ -82,8 +82,11 @@ namespace odb public: typedef sqlite::binding binding_type; + void + init (); + binding_type& - binding (); + binding () {return binding_;} private: friend class query_base; @@ -202,6 +205,11 @@ namespace odb const char* clause_prefix () const; + // Initialize the by-reference parameters from bound variables. + // + void + init_parameters () const; + binding& parameters_binding () const; -- cgit v1.1