Interface PGConnection
interface PGConnection {
close(): Promise<void>;
getBackendProcessId(): undefined | number;
getRefObject(): { ref(): void; unref(): void };
query(
sql: string,
params?: unknown[],
options?: PGQueryOptions,
): Promise<PGQueryResult<any>>;
}
close(): Promise<void>;
getBackendProcessId(): undefined | number;
getRefObject(): { ref(): void; unref(): void };
query(
sql: string,
params?: unknown[],
options?: PGQueryOptions,
): Promise<PGQueryResult<any>>;
}
Index
Methods
close
Returns Promise<void>
get Backend Process Id
Returns undefined | number
get Ref Object
Returns { ref(): void; unref(): void }
query
Parameters
- sql: string
Optionalparams: unknown[]Optionaloptions: PGQueryOptions
Returns Promise<PGQueryResult<any>>