Skip to content

SqliteAdapterOptions

This content is not available in your language yet.

db: SqliteLike


optional prefix?: string

Prefix for table names. Default "".


optional prepaid?: boolean

Enforce balance − reserved ≥ 0 inside the commit transaction. Default false (postpaid).


optional windowOf?: (row) => object

The counter window a usage row’s limit applies to — the same period your getRate counts usedSoFar over (e.g. (row) => monthWindow({ at: row.at })). Default: all time.

Parameter Type
row UsageRow

object

from: number

to: number