-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use simpler batch input #255
Conversation
@notrab I think we need to change |
@penberg you're right, I was thinking this was |
@@ -255,7 +256,7 @@ export async function executeHranaBatch( | |||
disableForeignKeys: boolean = false, | |||
): Promise<Array<ResultSet>> { | |||
if (disableForeignKeys) { | |||
batch.step().run("PRAGMA foreign_keys=off") | |||
batch.step().run("PRAGMA foreign_keys=off"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff noise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prettier ran on commit, have the rules changed?
@@ -287,7 +288,7 @@ export async function executeHranaBatch( | |||
.condition(hrana.BatchCond.not(hrana.BatchCond.ok(commitStep))); | |||
rollbackStep.run("ROLLBACK").catch((_) => undefined); | |||
if (disableForeignKeys) { | |||
batch.step().run("PRAGMA foreign_keys=on") | |||
batch.step().run("PRAGMA foreign_keys=on"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff noise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prettier ran on commit, have the rules changed?
packages/libsql-client/src/hrana.ts
Outdated
@@ -31,7 +32,7 @@ export abstract class HranaTransaction implements Transaction { | |||
abstract close(): void; | |||
abstract get closed(): boolean; | |||
|
|||
execute(stmt: InStatement): Promise<ResultSet> { | |||
async execute(stmt: InStatement): Promise<ResultSet> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks unrelated?
async migrate( | ||
stmts: Array<InStatement>, | ||
): Promise<Array<ResultSet>> { | ||
async migrate(stmts: Array<InStatement>): Promise<Array<ResultSet>> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Diff noise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prettier ran on commit, have the rules changed?
guys is there a reason this isnt merged yet? |
Closes #251
@penberg I didn't yet touch
sqlite3.ts
because updating that might break the compatibility... I'm not sure, wdyt?Hopefully we can refactor these classes at some point so we don't have to duplicate so much 😅