sqlite-utils --attach option, closes #236

This commit is contained in:
Simon Willison 2021-02-18 21:08:39 -08:00
commit 2ba5588881
4 changed files with 49 additions and 2 deletions

View file

@ -50,7 +50,9 @@ Connections use ``PRAGMA recursive_triggers=on`` by default. If you don't want t
Attaching additional databases
------------------------------
SQLite supports cross-database SQL queries, which can join data from tables in more than one database file. You can attach an additional database using the ``.attach()`` method, providing an alias to use for that database and the path to the SQLite file on disk.
SQLite supports cross-database SQL queries, which can join data from tables in more than one database file.
You can attach an additional database using the ``.attach()`` method, providing an alias to use for that database and the path to the SQLite file on disk.
.. code-block:: python