Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion types/defines/hyperdrive.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ interface Hyperdrive {
readonly port: number;
/*
* The username to use when authenticating to your database via Hyperdrive.
* Unlike the host and password, this will be the same every time
* Unlike the host and password, this will be the same every time
*/
readonly user: string;
/*
Expand All @@ -47,3 +47,17 @@ interface Hyperdrive {
*/
readonly database: string;
}

/**
* Dynamic Hyperdrive binding handle
*/
interface HyperdriveHandle {
connect(): Promise<Socket>;
}

/**
* Returns a dynamic Hyperdrive binding handle
*/
interface HyperdriveApiBinding {
get(): HyperdriveHandle;
}
12 changes: 12 additions & 0 deletions types/generated-snapshot/experimental/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14423,6 +14423,18 @@ interface Hyperdrive {
*/
readonly database: string;
}
/**
* Dynamic Hyperdrive binding handle
*/
interface HyperdriveHandle {
connect(): Promise<Socket>;
}
/**
* Returns a dynamic Hyperdrive binding handle
*/
interface HyperdriveApiBinding {
get(): HyperdriveHandle;
}
// Copyright (c) 2024 Cloudflare, Inc.
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0
Expand Down
12 changes: 12 additions & 0 deletions types/generated-snapshot/experimental/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14443,6 +14443,18 @@ export interface Hyperdrive {
*/
readonly database: string;
}
/**
* Dynamic Hyperdrive binding handle
*/
export interface HyperdriveHandle {
connect(): Promise<Socket>;
}
/**
* Returns a dynamic Hyperdrive binding handle
*/
export interface HyperdriveApiBinding {
get(): HyperdriveHandle;
}
// Copyright (c) 2024 Cloudflare, Inc.
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0
Expand Down
12 changes: 12 additions & 0 deletions types/generated-snapshot/latest/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13755,6 +13755,18 @@ interface Hyperdrive {
*/
readonly database: string;
}
/**
* Dynamic Hyperdrive binding handle
*/
interface HyperdriveHandle {
connect(): Promise<Socket>;
}
/**
* Returns a dynamic Hyperdrive binding handle
*/
interface HyperdriveApiBinding {
get(): HyperdriveHandle;
}
// Copyright (c) 2024 Cloudflare, Inc.
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0
Expand Down
12 changes: 12 additions & 0 deletions types/generated-snapshot/latest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13775,6 +13775,18 @@ export interface Hyperdrive {
*/
readonly database: string;
}
/**
* Dynamic Hyperdrive binding handle
*/
export interface HyperdriveHandle {
connect(): Promise<Socket>;
}
/**
* Returns a dynamic Hyperdrive binding handle
*/
export interface HyperdriveApiBinding {
get(): HyperdriveHandle;
}
// Copyright (c) 2024 Cloudflare, Inc.
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0
Expand Down
Loading