UNPKG

streamby-core

Version:

StreamBy middleware framework for media storage management

18 lines (17 loc) 1 kB
import { Pool } from 'pg'; import { FieldDefinition } from '../../types'; export declare const createSQLExportTable: (connection: Pool, projectId: string, exportName: string, fields: FieldDefinition[]) => Promise<{ collectionName: string; exportId: string; }>; export declare const createSQLRawExportTable: (connection: Pool, projectId: string, exportName: string, jsonData: any) => Promise<{ collectionName: string; exportId: string; }>; export declare const sqlAdapter: { find: (connection: Pool, tableName: string, filter: any, schema?: string) => Promise<any[]>; findOne: (connection: Pool, tableName: string, filter: any, schema?: string) => Promise<any | null>; create: (connection: Pool, tableName: string, data: any, schema?: string) => Promise<any>; update: (connection: Pool, tableName: string, filter: any, data: any, schema?: string) => Promise<any | null>; delete: (connection: Pool, tableName: string, filter: any, schema?: string) => Promise<number>; };