From d5d39da12b26c06a426e97872bce4e94248db42d Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Thu, 7 Feb 2019 22:23:27 -0800 Subject: [PATCH] Expanded section on db-to-sqlite --- docs/ecosystem.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/ecosystem.rst b/docs/ecosystem.rst index d235ab7b..401cd22a 100644 --- a/docs/ecosystem.rst +++ b/docs/ecosystem.rst @@ -28,6 +28,10 @@ db-to-sqlite `db-to-sqlite `__ is a CLI tool that builds on top of `SQLAlchemy `__ and allows you to connect to any database supported by that library (including MySQL, oracle and PostgreSQL), run a SQL query and save the results to a new table in a SQLite database. +You can mirror an entire database (including copying foreign key relationships) with the ``--all`` option:: + + $ db-to-sqlite --connection="postgresql://simonw@localhost/myblog" --all blog.db + dbf-to-sqlite ------------- @@ -73,4 +77,4 @@ datasette-pretty-json datasette-sqlite-fts4 --------------------- -`datasette-sqlite-fts4 `__ provides search relevance ranking algorithms that can be used with SQLite's FTS4 search module. You can read more about it in `Exploring search relevance algorithms with SQLite `__. \ No newline at end of file +`datasette-sqlite-fts4 `__ provides search relevance ranking algorithms that can be used with SQLite's FTS4 search module. You can read more about it in `Exploring search relevance algorithms with SQLite `__.