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