dm-metamapper 0.2.6 → 0.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -291,4 +291,16 @@ DBFace::now()
|
|
291
291
|
return UTILS::toString(mysqlRes[0]["now()"]);
|
292
292
|
}
|
293
293
|
|
294
|
+
string
|
295
|
+
sanitize(const string& s)
|
296
|
+
{
|
297
|
+
mysqlpp::Query q(0);
|
298
|
+
string escaped;
|
299
|
+
q.escape_string(&escaped, s.c_str());
|
300
|
+
q << escaped;
|
301
|
+
|
302
|
+
return q.str();
|
303
|
+
}
|
304
|
+
|
305
|
+
|
294
306
|
} //namespace DMMM
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-metamapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jonah Honeyman
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2012-07-
|
19
|
+
date: 2012-07-02 00:00:00 Z
|
20
20
|
dependencies: []
|
21
21
|
|
22
22
|
description: C++ API for databases created with DM. Hard typing, compile time checked queries.
|