Skip to content

Commit

Permalink
fin
Browse files Browse the repository at this point in the history
  • Loading branch information
danylo-safonov-solid committed Sep 21, 2023
1 parent 89fdb19 commit 162e09f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,3 @@ The main scenario is Supabase Edge Functions, but it should also work for other
Note: your filename may differ from the example

5. You can use the function now.

## Unimplemented
- [ ] QueryClient

- errors:
- [ ] TransactionError
- [ ] ConnectionError
- [ ] PostgresError
1 change: 1 addition & 0 deletions lib/src/connection.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
class Connection {}

Check notice on line 1 in lib/src/connection.dart

View workflow job for this annotation

GitHub Actions / build

Missing documentation for a public member.

Try adding documentation for the member. See https://dart-lang.github.io/linter/lints/public_member_api_docs.html to learn more about this problem.
7 changes: 5 additions & 2 deletions lib/src/query_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:js_interop';
import 'dart:js_util';

import 'package:deno_postgres_interop/src/client_common.dart';
import 'package:deno_postgres_interop/src/connection.dart';
import 'package:deno_postgres_interop/src/query_array_result.dart';
import 'package:deno_postgres_interop/src/query_object_options.dart';
import 'package:deno_postgres_interop/src/query_object_result.dart';
Expand All @@ -15,6 +16,9 @@ import 'package:deno_postgres_interop/src/util.dart';
class QueryClient {
/// [deno-postgres@v0.17.0/QueryClient/session](https://deno.land/x/postgres@v0.17.0/mod.ts?s=QueryClient#accessor_session).
external Session get session;

/// [deno-postgres@v0.17.0/QueryClient/constructor](https://deno.land/x/postgres@v0.17.0/mod.ts?s=QueryClient#ctor_0).
external factory QueryClient(Connection connection);
}

/// [deno-postgres@v0.17.0/QueryClient](https://deno.land/x/postgres@v0.17.0/mod.ts?s=QueryClient).
Expand All @@ -26,8 +30,7 @@ extension QueryClientProps on QueryClient {
Future<void> closeConnection() => callFutureMethod(this, 'closeConnection');

/// [deno-postgres@v0.17.0/QueryClient/resetSessionMetadata](https://deno.land/x/postgres@v0.17.0/mod.ts?s=QueryClient#method_resetSessionMetadata_0).
Future<void> resetSessionMetadata() =>
callFutureMethod(this, 'resetSessionMetadata');
void resetSessionMetadata() => callMethod(this, 'resetSessionMetadata', []);

/// [deno-postgres@v0.17.0/QueryClient/connect](https://deno.land/x/postgres@v0.17.0/mod.ts?s=QueryClient#method_connect_0).
Future<void> connect() => callFutureMethod(this, 'connect');
Expand Down

0 comments on commit 162e09f

Please sign in to comment.