Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
added ssl option for postgres introspection. Closes #2394
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jun 5, 2018
1 parent 1fb1b65 commit a8868c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cli/packages/prisma-cli-core/src/utils/EndpointDialog.ts
Expand Up @@ -30,6 +30,7 @@ export interface DatabaseCredentials {
database?: string
alreadyData?: boolean
schema?: string
ssl?: boolean
}

export interface GetEndpointResult {
Expand Down Expand Up @@ -415,6 +416,14 @@ export class EndpointDialog {
key: 'database',
})
: null
const ssl =
type === 'postgres'
? await this.ask({
message: 'Use SSL?',
inputType: 'confirm',
key: 'ssl',
})
: undefined
const schema = await this.ask({
message: `Enter name of existing schema`,
key: 'schema',
Expand All @@ -429,6 +438,7 @@ export class EndpointDialog {
database,
alreadyData,
schema,
ssl,
}
}

Expand Down

0 comments on commit a8868c5

Please sign in to comment.