import { Stowrage } from "https://deno.land/x/stowrage@v0.4.2/src/stowrage.ts";
Stowrage class
Constructors
new
Stowrage(options?: StowrageOptions)Methods
private
generateEntry(): DataBase<DataType>close(): void
Close SQLite database if it exists
delete(name: string): void
Delete entry from db by name
deleteByID(id: number): void
Delete entry from db by ID
deleteByRange(start: number, length: number): void
Delete multiple entries from db
deleteStowrage(): void
Delete the whole stowrage
fetchByRange(start: number, length: number): DataBase<DataType>[]
Fetch multiple entries from db
Get an Array of entries that matches your filter
Get the first entry that matches your filter
has(name: string): boolean
Check if your stowrage has an entry with the given name
init(): Promise<void>
Initiate persistent storage
Throw's when isPersistent
= false
overrideByID(id: number, key: DataType): void
Override entry from db by name
setValue(id: number, options: ChangeValueOptions<unknown>): void
Set the value of an entry via ID
setValue(name: string, options: ChangeValueOptions<unknown>): void
Set the value of an entry via ID
totalEntries(): number
Get total entries of the Stowrage