Pydbml

Latest version: v1.0.11

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

Scan your dependencies

Page 3 of 4

0.4.2

- Fix: after editing column name index dbml was not updated.
- Fix: enums with spaces in name were not applied.
- Fix: after editing column name table dict was not updated.
- Fix: after editing enum column type was not updated.
- Removed EnumType class. Only Enum is used now.

0.4.1

- Reworked `__repr__` and `__str__` methods on all classes. They are now much simplier and more readable.
- Comments on classes are now rendered as SQL comments in `sql` property (previously notes were rendered as comments on some classes).
- Notes on `Table` and `Column` classes are rendered as SQL comments in `sql` property: `COMMENT ON TABLE "x" is 'y'`.
- New: `dbml` property on most classes and on parsed results which returns the DBML code.
- Fix: sql for Reference and TableReference.

0.4.0

- New: Support composite references. **Breaks backward compatibility!** `col1`, `col2` attributes on `Reference` and `col`, `ref_col` attributes on `TableReference` are now lists of `Column` instead of `Column`.
- `TableGroup` now holds references to actual tables.

0.3.5

- New: Support references by aliases.
- New: Support indexes with expressions.
- New: You can now compare SQLObjects of same class.
- New: Add check for duplicate references on a table.
- Fix: minor bug fixes.

0.3.4

- Notes are now added as comments in SQL for tables, table columns, indeces, enums.

0.3.3

- Fix: bug in TableReference
- Fix: if schema had newline or comment at the end, it crashed parser

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.