bun overview

Added in v1.0.0


Table of contents


constructor

make

Signature

export declare const make: (options: SqliteBunConfig) => Effect.Effect<SqliteClient, never, Scope>

Added in v1.0.0

makeCompiler

Signature

export declare const makeCompiler: (transform?: ((_: string) => string) | undefined) => Statement.Compiler

Added in v1.0.0

makeLayer

Signature

export declare const makeLayer: (config: Config.Config.Wrap<SqliteBunConfig>) => Layer.Layer<SqliteClient, ConfigError>

Added in v1.0.0

models

SqliteBunConfig (interface)

Signature

export interface SqliteBunConfig {
  readonly filename: string
  readonly readonly?: boolean
  readonly create?: boolean
  readonly readwrite?: boolean
  readonly transformResultNames?: (str: string) => string
  readonly transformQueryNames?: (str: string) => string
}

Added in v1.0.0

SqliteClient

Signature

export declare const SqliteClient: SqliteClient

Added in v1.0.0

tags

tag

Signature

export declare const tag: Tag<SqliteClient, SqliteClient>

Added in v1.0.0

utils

transform

Column renaming helpers.

Signature

export declare const transform: typeof import("/Volumes/Code/sqlfx/packages/sql/src/Transform")

Added in v1.0.0