@jadejr/kysely-pglite
Version:
Kysely dialect for @electric-sql/pglite (temporary fork https://github.com/dnlsandiego/kysely-pglite)
10 lines • 433 B
JavaScript
// Borrowed from kysely's savepoint-parser.ts under the MIT license
import { IdentifierNode } from 'kysely';
import { RawNode } from 'kysely';
export function parseSavepointCommand(command, savepointName) {
return RawNode.createWithChildren([
RawNode.createWithSql(`${command} `),
IdentifierNode.create(savepointName), // ensures savepointName gets sanitized
]);
}
//# sourceMappingURL=savepoint-parser.js.map