-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,47 @@ | ||
import 'dart:js_interop'; | ||
import 'dart:js_util'; | ||
|
||
@JS() | ||
class QueryResult {} | ||
|
||
/// [postgres@v0.17.0/QueryResult](https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult) | ||
class QueryResult { | ||
/// https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult#prop_command | ||
external CommandType get command; | ||
|
||
/// https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult#prop_rowCount | ||
external int? get rowCount; | ||
|
||
/// https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult#accessor_rowDescription | ||
external RowDescription? get rowDescription; | ||
|
||
/// https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult#prop_warnings | ||
external List<Notice> get warnings; | ||
|
||
/// https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult#ctor_0 | ||
external factory QueryResult(Query<ResultType> query); | ||
|
||
/// https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult#method_handleCommandComplete_0 | ||
external void handleCommandComplete(String commandTag); | ||
|
||
/// https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult#method_loadColumnDescriptions_0 | ||
external void loadColumnDescriptions(RowDescription description); | ||
} | ||
|
||
extension QueryResultProps on QueryResult { | ||
Check notice on line 30 in lib/src/query_result.dart GitHub Actions / buildMissing documentation for a public member.
|
||
/// https://deno.land/x/postgres@v0.17.0/query/query.ts?s=QueryResult#method_insertRow_0 | ||
void insertRow(List<Uint8Array> row) => callMethod(this, 'insertRow', [row]); | ||
} | ||
|
||
// TODO: | ||
|
||
class Uint8Array {} | ||
Check notice on line 37 in lib/src/query_result.dart GitHub Actions / buildMissing documentation for a public member.
|
||
|
||
class Notice {} | ||
Check notice on line 39 in lib/src/query_result.dart GitHub Actions / buildMissing documentation for a public member.
|
||
|
||
class CommandType {} | ||
Check notice on line 41 in lib/src/query_result.dart GitHub Actions / buildMissing documentation for a public member.
|
||
|
||
class Query<T> {} | ||
Check notice on line 43 in lib/src/query_result.dart GitHub Actions / buildMissing documentation for a public member.
|
||
|
||
class ResultType {} | ||
Check notice on line 45 in lib/src/query_result.dart GitHub Actions / buildMissing documentation for a public member.
|
||
|
||
class RowDescription {} | ||
Check notice on line 47 in lib/src/query_result.dart GitHub Actions / buildMissing documentation for a public member.
|