Skip to content

D1Client

8 exports Added in v1.0.0 Source

Constructor

make

Added in v1.0.0 Source

Signature

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

Layers

layer

Added in v1.0.0 Source

Signature

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

layerConfig

Added in v1.0.0 Source

Signature

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

Models

D1Client interface

Added in v1.0.0 Source

Signature

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

D1ClientConfig interface

Added in v1.0.0 Source

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

D1Client

Added in v1.0.0 Source

Signature

declare const D1Client: any;

Type Ids

TypeId

Added in v1.0.0 Source

Signature

declare const TypeId: unique symbol;

TypeId type

Added in v1.0.0 Source

Signature

type TypeId = typeof TypeId;