We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c70290 commit 3a96614Copy full SHA for 3a96614
src/lib/helpers.ts
@@ -11,16 +11,3 @@ COALESCE(
11
'[]'
12
) AS ${source}`
13
}
14
-
15
-/**
16
- * Transforms an array of SQL strings into a transaction
17
- */
18
-export const toTransaction = (statements: string[]) => {
19
- let cleansed = statements.map((x) => {
20
- let sql = x.trim()
21
- if (sql.length > 0 && x.slice(-1) !== ';') sql += ';'
22
- return sql
23
- })
24
- const allStatements = cleansed.join('')
25
- return `BEGIN; ${allStatements} COMMIT;`
26
-}
0 commit comments