Interface SqlFunctionOptions

Options for StorageAdapter.registerFunction.

interface SqlFunctionOptions {
    deterministic?: boolean;
}

Properties

Properties

deterministic?: boolean

The function returns the same result for the same arguments, which SQLite requires of a function in an expression index, a partial index or a generated column. better-sqlite3 takes it; sql.js registers every function as non-deterministic.