1 |
|
2 | import { Pool, PoolConfig } from 'pg';
|
3 | import { IncomingMessage, ServerResponse } from 'http';
|
4 | import { GraphQLSchema } from 'graphql';
|
5 | import { EventEmitter } from 'events';
|
6 | import { PostGraphileOptions, HttpRequestHandler } from '../interfaces';
|
7 | import { ShutdownActions } from './shutdownActions';
|
8 | export interface PostgraphileSchemaBuilder<Request extends IncomingMessage = IncomingMessage, Response extends ServerResponse = ServerResponse> {
|
9 | _emitter: EventEmitter;
|
10 | getGraphQLSchema: () => Promise<GraphQLSchema>;
|
11 | options: PostGraphileOptions<Request, Response>;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare function getPostgraphileSchemaBuilder<Request extends IncomingMessage = IncomingMessage, Response extends ServerResponse = ServerResponse>(pgPool: Pool, schema: string | Array<string>, incomingOptions: PostGraphileOptions<Request, Response>, shutdownActions?: ShutdownActions): PostgraphileSchemaBuilder;
|
19 | export default function postgraphile<Request extends IncomingMessage = IncomingMessage, Response extends ServerResponse = ServerResponse>(poolOrConfig?: Pool | PoolConfig | string, schema?: string | Array<string>, options?: PostGraphileOptions<Request, Response>): HttpRequestHandler;
|
20 | export default function postgraphile<Request extends IncomingMessage = IncomingMessage, Response extends ServerResponse = ServerResponse>(poolOrConfig?: Pool | PoolConfig | string, options?: PostGraphileOptions<Request, Response>): HttpRequestHandler;
|