UNPKG

@0xobelisk/graphql-server

Version:

Tookit for interacting with dubhe graphql server

32 lines 1.05 kB
interface TableInfo { tableName: string; fullTableName: string; columns: ColumnInfo[]; primaryKeys: string[]; statistics?: { rowCount: number; totalSize: string; tableSize: string; }; generatedAt?: string; } interface ColumnInfo { columnName: string; dataType: string; isNullable: boolean; defaultValue?: any; maxLength?: number; precision?: number; scale?: number; } /** * Generate pre-built table information - called at server startup */ export declare function generateStoreTablesInfo(pgPool: any): Promise<Record<string, TableInfo>>; /** * Simplified tools plugin - only provides basic query functionality, let PostGraphile's built-in listen subscriptions work normally */ export declare function createUniversalSubscriptionsPlugin(preGeneratedTables?: Record<string, TableInfo>): import("postgraphile").Plugin; export declare const UniversalSubscriptionsPlugin: import("postgraphile").Plugin; export {}; //# sourceMappingURL=universal-subscriptions.d.ts.map