import { sql } from "~/db/sql"; import type { TournamentMatchGameResult } from "~/db/types"; const stm = sql.prepare(/* sql */ ` insert into "TournamentMatchGameResult" ("matchId", "stageId", "mode", "winnerTeamId", "reporterId", "number", "source") values (@matchId, @stageId, @mode, @winnerTeamId, @reporterId, @number, @source) returning * `); export function insertTournamentMatchGameResult( args: Omit ) { return stm.get(args) as TournamentMatchGameResult; }