db-to-sqlite

CLI tool for exporting tables or queries from any SQL database to a SQLite file

APACHE-2.0 License

Downloads
6K
Stars
369
Committers
3

Bot releases are hidden (Show)

db-to-sqlite - 1.5 Latest Release

Published by simonw over 1 year ago

  • Upgraded for compatibility with SQLAlchemy 2.0. #46
  • Now documented to work with MS SQL Server. Thanks, Ryan Cheley. #37
db-to-sqlite - 1.4

Published by simonw over 3 years ago

  • New --postgres-schema option for specifying a different PostgreSQL schema, thanks Jeremy Dormitzer. #29
  • Correctly handles table names that need escaping, such as user in PostgreSQL. #25
  • Empty tables are now created in the SQLite database with a matching schema, rather than being skipped. #28
  • Connection strings starting with postgres:// are treated as if they started with postgresql://. #34
db-to-sqlite - 1.3

Published by simonw about 4 years ago

  • Added support for compound primary keys. #26
db-to-sqlite - 1.2.1

Published by simonw over 4 years ago

db-to-sqlite - 1.2

Published by simonw over 4 years ago

Bumped to sqlite-utils 2.9.1. This fixes two things:

  • Decimal columns are now supported. They become FLOAT columns in SQLite.
  • Fixed a bug where columns that were a combination of integers and nulls were incorrectly stored as TEXT, not INTEGER.
db-to-sqlite - 1.1.1

Published by simonw over 4 years ago

I made a mistake with the release of 1.1 to PyPI - this fixes it.

db-to-sqlite - 1.1

Published by simonw over 4 years ago

Fixed compatibility with sqlite-utils 2.x - #20

db-to-sqlite - 1.0.2

Published by simonw about 5 years ago

Fix for #18 - no longer throws error on empty tables

db-to-sqlite - 1.0.1

Published by simonw over 5 years ago

  • Improvements to README
db-to-sqlite - 1.0

Published by simonw over 5 years ago

See the README for full usage instructions.

  • Instead of using --connection the connection string is now a required positional argument, #14
  • --sql must now be accompanied by --output specifying the table the query results should be written to
  • --redact tablename columnname option can be used to redact values, #2
  • Foreign keys are now created with indexes, use --no-index-fks to disable this, #12
  • --table can now be used multiple times, #6
  • README and --help now include example connection strings
  • README also details how this can be used with Heroku Postgres
db-to-sqlite - 0.8

Published by simonw over 5 years ago

  • Added --progress option to show progress bars during import - #7
db-to-sqlite - 0.7

Published by simonw over 5 years ago

  • Support pip install db-to-sqlite[postgresql] #4
  • Documentation for both that and pip install db-to-sqlite[mysql]
db-to-sqlite - 0.6

Published by simonw over 5 years ago

  • --all can now add many foreign key relationships without a VACUUM between each one, #8
  • Added unit tests against MySQL, refs #5
db-to-sqlite - 0.5

Published by simonw over 5 years ago

  • Foreign keys are now all added at the end, which means we can support circular foreign key references #1
  • Dropped dependency on toposort
  • Added --all --skip=table option for skipping one or more tables when running --all
db-to-sqlite - 0.4

Published by simonw over 5 years ago

  • Create --all tables in toposort order
  • Depend on sqlite-utils version 0.14 or higher
db-to-sqlite - 0.3

Published by simonw over 5 years ago

Anchor to sqlite-utils==0.13 to pick up a breaking change.

db-to-sqlite - 0.2

Published by simonw over 5 years ago

--all option can now be used to duplicate an entire database, including detecting foreign key relationships.

--table option called without --sql will now mirror the specified table.