1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-08 05:17:54 -05:00

[untested] - start reorganizing the solver folder (renamed to artigen here), organize imports better since deno has support for it now

This commit is contained in:
Ean Milligan
2025-05-01 17:56:06 -04:00
parent b9c7fac984
commit 6e1c6e8db3
74 changed files with 645 additions and 667 deletions

View File

@ -1,8 +1,8 @@
// This file will create all tables for the artificer schema
// DATA WILL BE LOST IF DB ALREADY EXISTS, RUN AT OWN RISK
import config from '../config.ts';
import dbClient from '../src/db/client.ts';
import config from '/config.ts';
import dbClient from 'db/client.ts';
console.log('Attempting to create DB');
await dbClient.execute(`CREATE SCHEMA IF NOT EXISTS ${config.db.name};`);

View File

@ -1,7 +1,7 @@
// This file will populate the tables with default values
import config from '../config.ts';
import dbClient from '../src/db/client.ts';
import dbClient from 'src/db/client.ts';
console.log('Attempting to populate DB Admin API key');
await dbClient.execute('INSERT INTO all_keys(userid,apiKey) values(?,?)', [config.api.admin, config.api.adminKey]).catch((e) => {