Skip to main content

Module sqlite

Module sqlite 

Source
Expand description

SQLite database management

Provides database instances, schema tracking, and query execution for protocols

Structs§

DatabaseConnection
Database connection wrapper (single connection protected by Mutex)
DatabaseId
Unique identifier for a database instance
DatabaseInstance
Database instance metadata and schema
DatabaseManager
Database manager (holds all database connections)
TableSchema
Table schema information

Enums§

DatabaseOwner
Database owner (server or client)
QueryResult
Result of a SQL query execution

Constants§

MAX_DATABASE_NAME_LEN
Longest accepted database name.
MAX_QUERY_DURATION
MAX_QUERY_RESULT_BYTES
MAX_QUERY_ROWS
Hard limits apply before copying query output into JSON.
MAX_QUERY_SQL_BYTES
MAX_QUERY_VALUE_BYTES
MAX_QUERY_VM_STEPS
Bound CPU work as well as output size (e.g. recursive CTEs with no output).
MEMORY_DATABASE_PATH
Path value that marks an in-memory (non-file-backed) database.

Functions§

database_file_path
The one filesystem location a file-backed database of this name may occupy.
validate_database_name
Validate a database name supplied by the model.