Subsetter

Latest version: v0.4.3

Safety actively analyzes 672690 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.3

- Fix issue where passthrough table columns could be marked for compaction

0.4.2

- Refactored temporary table creation to use sqlalchemy constructs
- Ensured temporary tables created with primary key if source table had one
- Added ID compaction functionality

0.4.1

- Added logic to appropriately adjust auto-increment sequence state for postgresql
- Add `merge` option to database output to attempt to merge sampled data into
existing data in the destination database.

0.4.0

- Unified config file
- Added ssl configuration support to source/output database connections
- Fixed bug in infer foreign key logic that prevented it from detecting
duplicate primary keys
- Added option to infer foreign keys across all schemas or just within schemas.
- Added database output `conflict_strategy` option
- Added `include_depencencies` planner option
- Fix bug generating plans with a target column in constraint with multiple options

0.3.1

- Update documentation
- Improve error messaging
- Update output formatting
- Add support for creating output schema if it does not exist
- Removed `normalize_foreign_keys` option that is no longer needed
- Like constraints in target constraints are now 'and'ed together as with all
other constraints instead of 'or'ed
- Changed optional dependency names to match sqlalchemy
- Added sqlite support (mostly to help with tests)

0.3.0

- Added support for remapping schema and table names in sampling phase
- Patch support for JSON data types
- Improve live database testing
- Replaced a lot of custom dialect handling with sqlalchemy core api
- Plan output no longer outputs if tables should be materialized. Sampler now
calculates if it needs to materialize a table itself.
- Fixed significant bug in solver that prevented finding a valid plan in many
scenarios. Now planning will only fail if there is a forward cycle of foreign
keys.
- Added support in mysql dialects for sampling across multiple foreign keys to
the same table. Previously this would result in an error due to attempting to
reopen a temporary table which is not supported in mysql.
- Ordering of tables in the produced plan no longer matters

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.