Thanks to visit codestin.com
Credit goes to effect-ts.github.io

Skip to main content Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App Codestin Search App

D1Client.ts overview

Since v1.0.0


Exports Grouped by Category


constructor

make

Signature

declare const make: (options: D1ClientConfig) => Effect.Effect<D1Client, never, Scope.Scope | Reactivity.Reactivity>

Source

Since v1.0.0

layers

layer

Signature

declare const layer: (config: D1ClientConfig) => Layer.Layer<D1Client | Client.SqlClient, ConfigError>

Source

Since v1.0.0

layerConfig

Signature

declare const layerConfig: (
  config: Config.Config.Wrap<D1ClientConfig>
) => Layer.Layer<D1Client | Client.SqlClient, ConfigError>

Source

Since v1.0.0

models

D1Client (interface)

Signature

export interface D1Client extends Client.SqlClient {
  readonly [TypeId]: TypeId
  readonly config: D1ClientConfig

  /** Not supported in d1 */
  readonly updateValues: never
}

Source

Since v1.0.0

D1ClientConfig (interface)

Signature

export interface D1ClientConfig {
  readonly db: D1Database
  readonly prepareCacheSize?: number | undefined
  readonly prepareCacheTTL?: Duration.DurationInput | undefined
  readonly spanAttributes?: Record<string, unknown> | undefined

  readonly transformResultNames?: ((str: string) => string) | undefined
  readonly transformQueryNames?: ((str: string) => string) | undefined
}

Source

Since v1.0.0

tags

D1Client

Signature

declare const D1Client: Context.Tag<D1Client, D1Client>

Source

Since v1.0.0

type ids

TypeId

Signature

declare const TypeId: unique symbol

Source

Since v1.0.0

TypeId (type alias)

Signature

type TypeId = typeof TypeId

Source

Since v1.0.0