ddstats-server/libs/database/helper.js

12 lines
320 B
JavaScript
Raw Normal View History

2021-10-31 21:24:55 +01:00
import { sqlite } from './init.js'
/**
* This function takes an array of strings to be ran on the DB.
*
2021-10-31 23:43:36 +01:00
* @param {[string]} instructions Array of instructions to be ran.
2021-10-31 21:24:55 +01:00
* @author BurnyLlama
*/
export function execMany(instructions) {
for (const instruction of instructions)
sqlite.exec(instruction)
}