streamby-core
Version:
StreamBy middleware framework for media storage management
11 lines (10 loc) • 390 B
TypeScript
import { Pool } from 'pg';
import { MongoClient } from 'mongodb';
import { DatabaseCredential } from '../../types';
export declare const initConnections: (configs: DatabaseCredential[]) => Promise<void>;
export declare const getConnection: (id: string) => {
id: string;
type: "sql" | "nosql";
client: Pool | MongoClient;
};
export declare const getConnectedIds: () => string[];