db init stuff

This commit is contained in:
Ean Milligan
2026-04-07 03:47:00 -04:00
parent a5f01b5336
commit 90d578e662
5 changed files with 78 additions and 2 deletions

14
db/client.ts Normal file
View File

@@ -0,0 +1,14 @@
import { Client } from '@mysql';
import config from '~config';
const dbClient = await new Client().connect({
hostname: config.db.host,
port: config.db.port,
db: config.db.name,
username: config.db.username,
password: config.db.password,
charset: 'utf8mb4',
});
export default dbClient;