ddstats-server/libs/database/helper.js
2021-10-31 23:43:36 +01:00

12 lines
320 B
JavaScript

import { sqlite } from './init.js'
/**
* This function takes an array of strings to be ran on the DB.
*
* @param {[string]} instructions Array of instructions to be ran.
* @author BurnyLlama
*/
export function execMany(instructions) {
for (const instruction of instructions)
sqlite.exec(instruction)
}