godot-sqlite-kysely
Version:
Kysely dialect for godot-sqlite. Adds SQLite support to Godot/GodotJS.
21 lines (20 loc) • 579 B
JavaScript
import { SqliteAdapter, SqliteIntrospector, SqliteQueryCompiler, } from 'kysely';
import { GodotSQLiteKyselyDriver } from './GodotSQLiteKyselyDriver';
export class GodotSQLiteKyselyDialect {
#config;
constructor(config) {
this.#config = { ...config };
}
createDriver() {
return new GodotSQLiteKyselyDriver(this.#config);
}
createQueryCompiler() {
return new SqliteQueryCompiler();
}
createAdapter() {
return new SqliteAdapter();
}
createIntrospector(db) {
return new SqliteIntrospector(db);
}
}