Skip to main content Link Search Menu Expand Document (external link)

effect overview

Effect entrypoint: idiomatic Effect API for resolving the libsqlite3 path.

Added in v0.0.0


Table of contents


utils

LibSqlite

Signature

export declare const LibSqlite: Context.Tag<LibSqliteService, LibSqliteService>

Added in v0.0.0

LibSqliteLive

Live Layer providing the resolved path.

Signature

export declare const LibSqliteLive: Layer.Layer<LibSqliteService, never, never>

Added in v0.0.0

LibSqliteService (interface)

Signature

export interface LibSqliteService {
  readonly path: string
}

Added in v0.0.0

PlatformNotSupportedError (class)

Signature

export declare class PlatformNotSupportedError

Added in v0.0.0

getLibSqlitePath

Effectful accessor to the path, mapping unsupported platforms into a typed error.

Signature

export declare const getLibSqlitePath: Effect.Effect<string, PlatformNotSupportedError, never>

Example

import { getLibSqlitePath } from "@effect-native/libsqlite/effect"
import * as Effect from "effect/Effect"
const program = Effect.gen(function* () {
  const p = yield* getLibSqlitePath
  return p
})

Added in v0.0.0