Skip to content

Commit

Permalink
more prope
Browse files Browse the repository at this point in the history
  • Loading branch information
danylo-safonov-solid committed Sep 19, 2023
1 parent 5516b9f commit 38540f1
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions lib/src/client_options.dart
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');
}

0 comments on commit 38540f1

Please sign in to comment.