SqliteClient.ts overview
Since v1.0.0
Exports Grouped by Category
constructor
make
Signature
declare const make: (
  options: SqliteClientConfig
) => Effect.Effect<SqliteClient, never, Scope.Scope | Reactivity.Reactivity>
Since v1.0.0
fiber refs
asyncQuery
Signature
declare const asyncQuery: FiberRef.FiberRef<boolean>
Since v1.0.0
withAsyncQuery
Signature
declare const withAsyncQuery: <R, E, A>(effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>
Since v1.0.0
layers
layer
Signature
declare const layer: (config: SqliteClientConfig) => Layer.Layer<SqliteClient | Client.SqlClient, ConfigError>
Since v1.0.0
layerConfig
Signature
declare const layerConfig: (
  config: Config.Config.Wrap<SqliteClientConfig>
) => Layer.Layer<SqliteClient | Client.SqlClient, ConfigError>
Since v1.0.0
models
SqliteClient (interface)
Signature
export interface SqliteClient extends Client.SqlClient {
  readonly [TypeId]: TypeId
  readonly config: SqliteClientConfig
  /** Not supported in sqlite */
  readonly updateValues: never
}
Since v1.0.0
SqliteClientConfig (interface)
Signature
export interface SqliteClientConfig {
  readonly filename: string
  readonly location?: string | undefined
  readonly encryptionKey?: string | undefined
  readonly spanAttributes?: Record<string, unknown> | undefined
  readonly transformResultNames?: ((str: string) => string) | undefined
  readonly transformQueryNames?: ((str: string) => string) | undefined
}
Since v1.0.0
tags
SqliteClient
Signature
declare const SqliteClient: Context.Tag<SqliteClient, SqliteClient>
Since v1.0.0
type ids
TypeId
Signature
declare const TypeId: unique symbol
Since v1.0.0
TypeId (type alias)
Signature
type TypeId = typeof TypeId
Since v1.0.0