Skip to content

Instantly share code, notes, and snippets.

View allohamora's full-sized avatar
🇺🇦
Glory to Ukraine

Herman Hrand allohamora

🇺🇦
Glory to Ukraine
View GitHub Profile
@allohamora
allohamora / index.ts
Last active October 8, 2023 17:10 — forked from surma/db-helper.ts
import { Database } from "sqlite3";
class DatabaseHelper {
constructor(private database: Database) {}
public async query (
parts: string[],
...params: any[]
): Promise<sqlite3.RunResult> {
const sql = parts.join("?");