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.
24 lines (23 loc) • 693 B
TypeScript
import { Firestore } from "firebase-admin/firestore";
import { PgDatabase } from "../config/postgres.config";
import { Message } from "../utility";
import { Knex } from "knex";
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[], dbInstance: Knex, firestoreDB: Firestore);
call(dbData: DBData): Promise<Message>;
private saveToFirestore;
}
export {};