Files
Jannik ef2fc51ee5
Build and Push Docker Image / build-and-push (push) Canceled after 0s
feat: Antigravity-Werte persistent in DB speichern (überleben Server-Neustart)
2026-09-05 19:58:46 +02:00

19 lines
763 B
TypeScript

import { Pool } from 'pg';
export declare const pool: Pool;
export interface QuotaEntry {
id?: number;
provider: string;
used: number;
total: number;
percentage: number;
timestamp?: Date;
meta?: any;
}
export declare function initDb(): Promise<void>;
export declare function saveAntigravityLatest(data: Record<string, any>): Promise<void>;
export declare function loadAntigravityLatest(): Promise<Record<string, any> | null>;
export declare function insertQuota(entry: QuotaEntry): Promise<any>;
export declare function getLatestQuotas(): Promise<any[]>;
export declare function getTodayStartQuota(provider: string): Promise<any>;
export declare function getQuotaHistory(days?: number): Promise<any[]>;
//# sourceMappingURL=db.d.ts.map