godot-sqlite-kysely
Version:
Kysely dialect for godot-sqlite. Adds SQLite support to Godot/GodotJS.
25 lines (24 loc) • 763 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GodotSQLiteKyselyDialect = void 0;
const kysely_1 = require("kysely");
const GodotSQLiteKyselyDriver_1 = require("./GodotSQLiteKyselyDriver");
class GodotSQLiteKyselyDialect {
#config;
constructor(config) {
this.#config = { ...config };
}
createDriver() {
return new GodotSQLiteKyselyDriver_1.GodotSQLiteKyselyDriver(this.#config);
}
createQueryCompiler() {
return new kysely_1.SqliteQueryCompiler();
}
createAdapter() {
return new kysely_1.SqliteAdapter();
}
createIntrospector(db) {
return new kysely_1.SqliteIntrospector(db);
}
}
exports.GodotSQLiteKyselyDialect = GodotSQLiteKyselyDialect;