mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
18 lines
559 B
TypeScript
18 lines
559 B
TypeScript
// Type definitions for pg-connection-string 0.1
|
|
// Project: https://github.com/iceddev/pg-connection-string
|
|
// Definitions by: Bradley Ayers <https://github.com/bradleyayers>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.1
|
|
|
|
export function parse(connectionString: string): {
|
|
host: string;
|
|
database: string | null;
|
|
port: string | null;
|
|
application_name?: string;
|
|
client_encoding?: string;
|
|
fallback_application_name?: string;
|
|
user?: string;
|
|
password?: string;
|
|
ssl?: boolean;
|
|
};
|