-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5516b9f
commit 38540f1
Showing
1 changed file
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,39 @@ | ||
import 'dart:js_util'; | ||
|
||
import 'package:deno_postgres_interop/src/transport.dart'; | ||
|
||
/// [[email protected]/ClientOptions](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions). | ||
class ClientOptions { | ||
/// [[email protected]/ClientOptions/applicationName](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_applicationName). | ||
external String get applicationName; | ||
|
||
/// [[email protected]/ClientOptions/connection](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_connection). | ||
// external Partial<ConnectionOptions> get connection; | ||
|
||
/// [[email protected]/ClientOptions/database](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_database). | ||
external String get database; | ||
|
||
/// [[email protected]/ClientOptions/hostname](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_hostname). | ||
external String get hostname; | ||
external Transport get host_type; | ||
// external String | Record<string, string> get options; | ||
|
||
/// [[email protected]/ClientOptions/options](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_options). | ||
// external String | Record<string, string> get options; | ||
|
||
/// [[email protected]/ClientOptions/password](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_password). | ||
external String get password; | ||
// external String | number get port; | ||
|
||
/// [[email protected]/ClientOptions/port](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_port). | ||
// external String | number get port; | ||
|
||
/// [[email protected]/ClientOptions/tls](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_tls). | ||
// external Partial<TLSOptions> get tls; | ||
|
||
/// [[email protected]/ClientOptions/user](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_applicationName/user). | ||
external String get user; | ||
} | ||
|
||
/// [[email protected]/ClientOptions](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions). | ||
extension ClientOptionsProps on ClientOptions { | ||
/// [[email protected]/ClientOptions/host_type](https://deno.land/x/[email protected]/mod.ts?s=ClientOptions#prop_host_type). | ||
Transport get hostType => getProperty(this, 'host_type'); | ||
} |