mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-08-28 11:36:45 +08:00
test use db in worker_thread
This commit is contained in:
@@ -17,7 +17,7 @@ import sqlite3 from 'sqlite3';
|
||||
import * as cliHighlight from 'cli-highlight';
|
||||
Boolean(cliHighlight);
|
||||
|
||||
function initDb(dbFilePath) {
|
||||
export function initDb(dbFilePath) {
|
||||
const { DataSource } = requireTypeorm()
|
||||
const appDataSource = new DataSource({
|
||||
type: "sqlite",
|
||||
|
||||
Reference in New Issue
Block a user