All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
This reverts commit 5d5f140091.
13 lines
260 B
TypeScript
13 lines
260 B
TypeScript
import Database from 'better-sqlite3';
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
const fullPath = './src/lib/data/tatort.db';
|
|
const dir = path.dirname(fullPath);
|
|
|
|
if (!fs.existsSync(dir)) {
|
|
fs.mkdirSync(dir);
|
|
}
|
|
|
|
export const db = new Database(fullPath);
|