@nongt/visql-core 0.12.0 → 0.12.2
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.
- package/dist/core.js +1 -1
- package/dist/explain.js +1 -1
- package/dist/fixtures.js +1 -1
- package/dist/{sqlGen-DGXVba3D.js → sqlGen-BbCX8Ywc.js} +179 -178
- package/dist/types/core/sqlGen.d.ts +8 -0
- package/package.json +1 -1
|
@@ -74,6 +74,9 @@ export declare function astToSql(pipeline: QueryPipeline, dialect: SqlDialect, o
|
|
|
74
74
|
nullSafeEqual?: NullSafeEqual;
|
|
75
75
|
/** How a calculation divides (see ParameterizedSqlOptions). */
|
|
76
76
|
division?: Division;
|
|
77
|
+
/** Whether MySQL reads a backslash as an escape (see
|
|
78
|
+
* ParameterizedSqlOptions). */
|
|
79
|
+
backslashEscapes?: boolean;
|
|
77
80
|
}): string;
|
|
78
81
|
/** SQL with its values as bound parameters, for executing it. */
|
|
79
82
|
export interface ParameterizedSql {
|
|
@@ -113,6 +116,11 @@ export interface ParameterizedSqlOptions {
|
|
|
113
116
|
* fraction everywhere (`5 / 2` is 2.5), or `'native'`, each database's
|
|
114
117
|
* own (2 in PostgreSQL and SQL Server for two whole numbers). */
|
|
115
118
|
division?: Division;
|
|
119
|
+
/** MySQL only: whether the server reads a backslash in a string as an
|
|
120
|
+
* escape, as it does by default, so a text written into the SQL has its
|
|
121
|
+
* backslashes doubled. `false` for a server with NO_BACKSLASH_ESCAPES in
|
|
122
|
+
* its sql_mode, where doubling them would change the text. */
|
|
123
|
+
backslashEscapes?: boolean;
|
|
116
124
|
}
|
|
117
125
|
/** The query as SQL whose values — in WHERE, JOIN ON and SELECT, including
|
|
118
126
|
* inside functions, IF/CASE and IN lists — are bound parameters rather than
|
package/package.json
CHANGED