GroupUp/src/db.ts

18 lines
499 B
TypeScript
Raw Normal View History

2023-01-11 15:06:20 -08:00
import config from '../config.ts';
import { Client } from '../deps.ts';
import { LOCALMODE } from '../flags.ts';
export const dbClient = await new Client().connect({
hostname: LOCALMODE ? config.db.localhost : config.db.host,
port: config.db.port,
db: config.db.name,
username: config.db.username,
password: config.db.password,
});
export const queries = {
callIncCnt: (cmdName: string) => `CALL INC_CNT("${cmdName}");`,
};
2023-01-11 18:21:43 -08:00
export const lfgChannels: Array<bigint> = [1055568692697649232n];