mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-08 01:24:20 +02:00
Table/View gain an explicit alias attribute for their attached or temp schema. db["alias.table"] resolves it when alias names a real attached database or the temp schema (schema_names), leaving plain and literally-dotted main-schema names unaffected. exists(), columns, schema, indexes, foreign_keys, triggers, and the read/write path (rows_where, get, insert/insert_all, upsert, update, delete, delete_where, add_column, drop, analyze) are all schema-qualified correctly instead of silently checking/writing the main schema. Methods that would need deeper cross-schema rework (create, transform, create_index, enable_fts and friends, add_foreign_key, extract, duplicate, spatial columns) raise a clear NotImplementedError for aliased tables instead of silently operating on a same-named main-schema table. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| cli.py | ||
| db.py | ||
| hookspecs.py | ||
| migrations.py | ||
| plugins.py | ||
| py.typed | ||
| recipes.py | ||
| utils.py | ||