firebase-admin-ql
Version:
A powerful library that bridges Firebase Admin SDK with PostgreSQL, simplifies interaction with stored procedures, facilitates seamless third-party API calls using fetch, and provides utility functions to streamline backend operations.
23 lines (22 loc) • 670 B
TypeScript
import { Firestore } from "firebase-admin/firestore";
import { PgDatabase } from "../config/postgres.config";
import { Message } from "../utility";
type PgBackup = {
backupDb: string;
whereKeys?: string | string[];
dbLabel: string;
firestorReference?: string;
};
type DBData = {
formData: object;
backups?: PgBackup[];
};
export declare class PgBaseModel extends PgDatabase {
private procedure;
private order;
private firestoreDB;
constructor(schema: string, procedure: string, order: string[], connectionOptions: any, firestoreDB: Firestore);
call(dbData: DBData): Promise<Message>;
private saveToFirestore;
}
export {};