We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cac151 commit 33c6bd0Copy full SHA for 33c6bd0
1 file changed
overrides/d1.d.ts
@@ -5,17 +5,14 @@ declare type D1Result<T = unknown> = {
5
duration: number;
6
error?: string;
7
};
8
+
9
declare abstract class D1Database {
10
prepare(query: string): D1PreparedStatement;
11
dump(): Promise<ArrayBuffer>;
12
batch<T = unknown>(statements: D1PreparedStatement[]): Promise<D1Result<T>[]>;
13
exec<T = unknown>(query: string): Promise<D1Result<T>>;
- _send<T = unknown>(
14
- endpoint: string,
15
- query: any,
16
- params: any[]
17
- ): Promise<D1Result<T>[] | D1Result<T>>;
18
}
19
declare abstract class D1PreparedStatement {
20
bind(...values: any[]): D1PreparedStatement;
21
first<T = unknown>(colName?: string): Promise<T>;
0 commit comments