Skip to content

Commit

Permalink
style:
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Jun 7, 2017
1 parent 0c1bb7b commit d903240
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export type ClientConfigurationType = {
+errors?: ClientErrorsConfigurationType
};

export type DatabaseConfigurationType = DatabaseConnectionUriType |
export type DatabaseConfigurationType =
DatabaseConnectionUriType |
{|
+database?: string,
+host?: string,
Expand All @@ -45,10 +46,6 @@ export type DatabaseConfigurationType = DatabaseConnectionUriType |
+user?: string
|};

export type DatabaseSingleConnectionType = {
end: () => Promise<void>
} & DatabaseConnectionType;

export type DatabaseConnectionType = {
+any: QueryAnyType<*>,
+many: QueryManyType<*>,
Expand All @@ -58,6 +55,10 @@ export type DatabaseConnectionType = {
+transaction: TransactionType
};

export type DatabaseSingleConnectionType = {
end: () => Promise<void>
} & DatabaseConnectionType;

export type DatabasePoolConnectionType = DatabaseConnectionType & {
+release: () => Promise<void>
};
Expand Down

0 comments on commit d903240

Please sign in to comment.