Files
supabase/apps/studio/data/sql/utils/transaction.ts
Ali Waseem b6874ff76d fix: update to rollback and changes with insert,update or delete on pretty explai (#41651)
update to rollback and changes with insert,update or delete
2025-12-30 09:29:38 -07:00

20 lines
238 B
TypeScript

export function wrapWithTransaction(sql: string) {
return /* SQL */ `
begin;
${sql}
commit;
`
}
export function wrapWithRollback(sql: string) {
return /* SQL */ `
begin;
${sql}
rollback;
`
}