streamby-core
Version:
StreamBy middleware framework for media storage management
19 lines (18 loc) • 431 B
TypeScript
import { Pool } from 'pg';
import { MongoClient } from 'mongodb';
export interface SetupStreambyPgOptions {
pool: Pool;
schema?: string;
reset?: boolean;
allowResetInProd?: boolean;
}
export interface SetupStreambyMongoOptions {
client: MongoClient;
dbName?: string;
}
export interface SetupResult {
didCreateSchema: boolean;
didCreateTables: boolean;
didReset: boolean;
errors: string[];
}