Skip to content

Commit

Permalink
Feat: Added ssl for database; fixed port (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
adampash authored Aug 15, 2016
1 parent 55cc30a commit 9868b3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/packages/database/interfaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export type Database$environment = {
database?: string;
username?: string;
password?: string;
port?: number;
ssl?: boolean;
url?: string;
};

Expand Down
4 changes: 4 additions & 0 deletions src/packages/database/utils/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export default function connect(path, config = {}) {
database,
username,
password,
port,
ssl,
url
} = config;

Expand All @@ -48,6 +50,8 @@ export default function connect(path, config = {}) {
host,
database,
password,
port,
ssl,
user: username,
socketPath: socket,
filename: usingSQLite ?
Expand Down

0 comments on commit 9868b3d

Please sign in to comment.