Postnormalism

Latest version: v0.0.5

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

Scan your dependencies

0.0.5

* add ability to create View and Trigger
* changed Database.get_items_by_type to return DatabaseItems instead of name strings
* added _item_type and itype property to DatabaseItem and set itypes for tables, views, etc
* modified functions to handle Exists mode with OR REPLACE
* renamed GitHub tests action to Tests, increased number of tests and enhanced organization of tests

0.0.4

* add ability to create Schema
* cleaning up more naming and references related to the SchemaItem -> DatabaseItem change in v0.0.2
* use _name_pattern attribute to avoid defining a __post_init__ on all DatabaseItems
* add additional tests
* add GitHub action to run tests
* add GitHub action to release to PyPI

0.0.3

* Migrations: specify a migrations_folder and write SQL migrations that are loaded in Database.create

0.0.2

* SchemaItem -> DatabaseItem: the term schema has some meaning in a PostgreSQL database. Starting to change SchemaItems into DatabaseItems in order to create a way to manage real PostgreSQL schemas
* DatabaseItem dataclass allows Tables and Functions to extract the table name from the CREATE and makes it accessible via the name property
* Adding the Database dataclass: Database is a class for managing a PostgreSQL database such as the load_order of DatabaseItems and the extensions to install
* There's now an 'exists' option on Tables that allows them to load with IF NOT EXISTS inserted into the CREATEs. The exists option is a boolean parameter on the Database create method

0.0.1

Initial release

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.