tools.sqlite_tools module
User-scoped SQLite database tools.
Each user gets an isolated directory of SQLite databases:
data/user_dbs/{user_id}/{db_name}.db
Users can only access their own databases. Holding the
SQLITE_CROSS_USER privilege (bit 3) allows accessing another
user’s databases by passing an explicit target_user_id.
Admins implicitly hold all privilege bits.