You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: machines/compile-statement.js
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,8 @@ module.exports = {
48
48
outputDescription: 'The `nativeQuery` property is the compiled native query for the database. The `meta` property is reserved for custom driver-specific extensions.',
49
49
example: '==='
50
50
// example: {
51
-
// nativeQuery: '*',
51
+
// nativeQuery: 'SELECT * FROM foo',
52
+
// valuesToEscape: ['foo']
52
53
// meta: '==='
53
54
// }
54
55
},
@@ -105,9 +106,16 @@ module.exports = {
105
106
returnexits.error(err);
106
107
}
107
108
109
+
110
+
// Attach a flag to the meta object to denote that the query was generated
111
+
// with Knex and that it's valuesToEscape don't need to be processed any further.
0 commit comments