Skip to content
Effect 4.0 is here. One ecosystem. Zero dependencies.

D1Client

8 exports Since v1.0.0 Source

Constructor

Since v1.0.0

Signature

declare function make(options: D1ClientConfig): Effect<D1Client, never, any>

Layers

Since v1.0.0

Signature

declare function layer(config: D1ClientConfig): Layer<any, ConfigError>

Signature

declare function layerConfig(config: Wrap<D1ClientConfig>): Layer<any, ConfigError>

Models

D1Client

interface
Since v1.0.0

Signature

interface D1Client extends unknown {
readonly [TypeId]: typeof TypeId;
readonly config: D1ClientConfig;
readonly updateValues: never;
}
Since v1.0.0

Signature

interface D1ClientConfig {
readonly db: D1Database;
readonly prepareCacheSize?: number;
readonly prepareCacheTTL?: any;
readonly spanAttributes?: Record<string, unknown>;
readonly transformQueryNames?: (str: string) => string;
readonly transformResultNames?: (str: string) => string;
}

Tags

Since v1.0.0

Signature

declare const D1Client: any

Type Ids

Since v1.0.0

Signature

declare const TypeId: unique symbol
Since v1.0.0

Signature

type TypeId = typeof TypeId