Skip to main content

Module db

Module db 

Source

Structs§

Database
Core database wrapper
FtsPage
Lexical candidates for one project bank.

Constants§

FTS_SCAN_LIMIT
Rows a search scans when the FTS index is missing or broken.

Functions§

fts_match_query
FTS5 MATCH string for free text: every word of two or more characters, quoted and OR-ed, so punctuation and FTS operators in user text are inert. None when nothing indexable is left.

Type Aliases§

BranchInsert
One stored branch accepted by Database::replace_transcript: its optional name and every message JSON from the root to its leaf.
MessageInsert
Message tuple accepted by Database::replace_messages: (msg id, role, content json, tool_call_id, name, created_at rfc3339).