Skip to content
Effect Days 2026 Get your ticket

SqliteClient

14 exports Added in v1.0.0 Source

Constructor

make

Added in v1.0.0 Source

Signature

declare function make(options: SqliteClientConfig): Effect<SqliteClient, SqlError, any>

makeMemory

Added in v1.0.0 Source

Signature

declare function makeMemory(options: SqliteClientMemoryConfig): Effect<SqliteClient, SqlError, any>

Layers

layer

Added in v1.0.0 Source

Signature

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

layerConfig

Added in v1.0.0 Source

Signature

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

layerMemory

Added in v1.0.0 Source

Signature

declare function layerMemory(config: SqliteClientMemoryConfig): Layer<any, any>

Signature

declare function layerMemoryConfig(config: Wrap<SqliteClientMemoryConfig>): Layer<any, any>

Models

SqliteClient interface

Added in v1.0.0 Source

Signature

interface SqliteClient extends unknown {
readonly [TypeId]: typeof TypeId;
readonly config: SqliteClientMemoryConfig;
readonly export: Effect<Uint8Array<ArrayBufferLike>, SqlError>;
readonly import: (data: Uint8Array) => Effect<void, SqlError>;
readonly updateValues: never;
}

SqliteClientConfig interface

Added in v1.0.0 Source

Signature

interface SqliteClientConfig {
readonly installReactivityHooks?: boolean;
readonly spanAttributes?: Record<string, unknown>;
readonly transformQueryNames?: (str: string) => string;
readonly transformResultNames?: (str: string) => string;
readonly worker: Effect<MessagePort | Worker | SharedWorker, never, Scope>;
}

SqliteClientMemoryConfig interface

Added in v1.0.0 Source

Signature

interface SqliteClientMemoryConfig {
readonly installReactivityHooks?: boolean;
readonly spanAttributes?: Record<string, unknown>;
readonly transformQueryNames?: (str: string) => string;
readonly transformResultNames?: (str: string) => string;
}

Tags

SqliteClient

Added in v1.0.0 Source

Signature

declare const SqliteClient: any

Tranferables

Signature

declare const currentTransferables: FiberRef.FiberRef<ReadonlyArray<Transferable>>

Signature

declare function withTransferables(transferables: readonly Array<Transferable>): <A, E, R>(effect: Effect<A, E, R>) => Effect<A, E, R>

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