SqliteClient.SqliteClientConfiginterfacerepos/effect/packages/sql/sqlite-node/src/SqliteClient.ts:90SqliteClientConfigConfiguration for a node SQLite client backed by node:sqlite, including the database filename, read-only mode, statement cache settings, WAL behavior, span attributes, and query/result name transforms.
export interface SqliteClientConfig {
readonly SqliteClientConfig.filename: stringfilename: string
readonly SqliteClientConfig.readonly?: boolean | undefinedreadonly?: boolean | undefined
readonly SqliteClientConfig.prepareCacheSize?: number | undefinedprepareCacheSize?: number | undefined
readonly SqliteClientConfig.prepareCacheTTL?: Duration.Input | undefinedprepareCacheTTL?: import DurationDuration.type Input =
| number
| bigint
| Duration.Duration
| readonly [seconds: number, nanos: number]
| `${number} nano`
| `${number} nanos`
| `${number} micro`
| `${number} micros`
| `${number} milli`
| `${number} millis`
| `${number} second`
| `${number} seconds`
| `${number} minute`
| `${number} minutes`
| `${number} hour`
| `${number} hours`
| `${number} day`
| `${number} days`
| `${number} week`
| `${number} weeks`
| "Infinity"
| "-Infinity"
| Duration.DurationObject
Valid input types that can be converted to a Duration.
When to use
Use when an API should accept any value that Effect can convert into a
Duration, including existing durations, millisecond numbers, nanosecond
bigints, high-resolution tuples, duration strings, infinity strings, or
duration objects.
Details
String inputs accept values like "10 seconds", "500 millis",
"Infinity", and "-Infinity". Finite fractional values that are
normalized to nanoseconds are rounded to the nearest nanosecond, with ties
away from zero.
Input | undefined
readonly SqliteClientConfig.disableWAL?: boolean | undefineddisableWAL?: boolean | undefined
readonly SqliteClientConfig.spanAttributes?: Record<string, unknown> | undefinedspanAttributes?: type Record<K extends keyof any, T> = {
[P in K]: T
}
Construct a type with a set of properties K of type T
Record<string, unknown> | undefined
readonly SqliteClientConfig.transformResultNames?: ((str: string) => string) | undefinedtransformResultNames?: ((str: stringstr: string) => string) | undefined
readonly SqliteClientConfig.transformQueryNames?: ((str: string) => string) | undefinedtransformQueryNames?: ((str: stringstr: string) => string) | undefined
}