Skip to content

Commit 3a96614

Browse files
committed
chore: remove unused code
1 parent 1c70290 commit 3a96614

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/lib/helpers.ts

-13
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,3 @@ COALESCE(
1111
'[]'
1212
) AS ${source}`
1313
}
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

Comments
 (0)