D1Client
Constructor
Layers
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
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;}