Initial commit - Event Planner application
This commit is contained in:
37
node_modules/kysely/dist/cjs/dialect/sqlite/sqlite-query-compiler.js
generated
vendored
Normal file
37
node_modules/kysely/dist/cjs/dialect/sqlite/sqlite-query-compiler.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SqliteQueryCompiler = void 0;
|
||||
const default_query_compiler_js_1 = require("../../query-compiler/default-query-compiler.js");
|
||||
const ID_WRAP_REGEX = /"/g;
|
||||
class SqliteQueryCompiler extends default_query_compiler_js_1.DefaultQueryCompiler {
|
||||
visitOrAction(node) {
|
||||
this.append('or ');
|
||||
this.append(node.action);
|
||||
}
|
||||
getCurrentParameterPlaceholder() {
|
||||
return '?';
|
||||
}
|
||||
getLeftExplainOptionsWrapper() {
|
||||
return '';
|
||||
}
|
||||
getRightExplainOptionsWrapper() {
|
||||
return '';
|
||||
}
|
||||
getLeftIdentifierWrapper() {
|
||||
return '"';
|
||||
}
|
||||
getRightIdentifierWrapper() {
|
||||
return '"';
|
||||
}
|
||||
getAutoIncrement() {
|
||||
return 'autoincrement';
|
||||
}
|
||||
sanitizeIdentifier(identifier) {
|
||||
return identifier.replace(ID_WRAP_REGEX, '""');
|
||||
}
|
||||
visitDefaultInsertValue(_) {
|
||||
// sqlite doesn't support the `default` keyword in inserts.
|
||||
this.append('null');
|
||||
}
|
||||
}
|
||||
exports.SqliteQueryCompiler = SqliteQueryCompiler;
|
||||
Reference in New Issue
Block a user