summaryrefslogtreecommitdiff
path: root/odb/relational/context.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/context.hxx')
-rw-r--r--odb/relational/context.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/relational/context.hxx b/odb/relational/context.hxx
index 08f8b81..e654aee 100644
--- a/odb/relational/context.hxx
+++ b/odb/relational/context.hxx
@@ -28,6 +28,11 @@ namespace relational
grow (semantics::data_member&, semantics::type&, string const& key_prefix);
public:
+ // Quote SQL string.
+ //
+ string
+ quote_string (string const&) const;
+
// Quote SQL identifier.
//
string
@@ -75,6 +80,15 @@ namespace relational
semantics::type&,
string const&);
+ // The default implementation uses the ISO quoting ('') and
+ // escapes singe quotes inside the string by double-quoting
+ // (' -> ''). Some (most?) database systems support escape
+ // sequences. We may want to provide utilize that to support
+ // things like \n, \t, etc.
+ //
+ virtual string
+ quote_string_impl (string const&) const;
+
// The default implementation uses the ISO quoting ("").
//
virtual string