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

SqliteClient

10 exports Since v1.0.0 Source

Constructor

Since v1.0.0

Signature

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

Fiber Refs

Signature

declare const asyncQuery: FiberRef.FiberRef<boolean>

Signature

declare function withAsyncQuery<R, E, A>(effect: Effect<A, E, R>): any

Layers

Since v1.0.0

Signature

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

Signature

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

Models

SqliteClient

interface
Since v1.0.0

Signature

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

Signature

interface SqliteClientConfig {
readonly encryptionKey?: string;
readonly filename: string;
readonly location?: string;
readonly spanAttributes?: Record<string, unknown>;
readonly transformQueryNames?: (str: string) => string;
readonly transformResultNames?: (str: string) => string;
}

Tags

Signature

declare const SqliteClient: any

Type Ids

Since v1.0.0

Signature

declare const TypeId: unique symbol
Since v1.0.0

Signature

type TypeId = typeof TypeId