Sqlacodegen

Latest version: v2.3.0.post1

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

Scan your dependencies

Page 2 of 4

3.0.0b2

- Fixed ``IDENTITY`` columns not rendering properly when they are part of the primary
key

3.0.0b1

**NOTE**: Both the API and the command line interface have been refactored in a
backwards incompatible fashion. Notably several command line options have been moved to
specific generators and are no longer visible from ``sqlacodegen --help``. Their
replacement are documented in the README.

- Dropped support for Python < 3.6
- Added support for Python 3.10
- Added support for SQLAlchemy 1.4
- Added support for bidirectional relationships (use ``--option nobidi``) to disable
- Added support for multiple schemas via ``--schemas``
- Added support for ``IDENTITY`` columns
- Disabled inflection during table/relationship name generation by default
(use ``--option use_inflect`` to re-enable)
- Refactored the old ``CodeGenerator`` class into separate generator classes, selectable
via ``--generator``
- Refactored several command line options into generator specific options:

- ``--noindexes`` → ``--option noindexes``
- ``--noconstraints`` → ``--option noconstraints``
- ``--nocomments`` → ``--option nocomments``
- ``--nojoined`` → ``--option nojoined`` (``declarative`` and ``dataclass`` generators
only)
- ``--noinflect`` → (now the default; use ``--option use_inflect`` instead)
(``declarative`` and ``dataclass`` generators only)
- Fixed missing import for ``JSONB`` ``astext_type`` argument
- Fixed generated column or relationship names colliding with imports or each other
- Fixed ``CompileError`` when encountering server defaults that contain colons (``:``)

2.3.0

- Added support for rendering computed columns
- Fixed ``--nocomments`` not taking effect (fix proposed by AzuresYang)
- Fixed handling of MySQL ``SET`` column types (and possibly others as well)

2.2.0

- Added support for rendering table comments (PR by David Hirschfeld)
- Fixed bad identifier names being generated for plain tables (PR by softwarepk)

2.1.0

- Dropped support for Python 3.4
- Dropped support for SQLAlchemy 0.8
- Added support for Python 3.7 and 3.8
- Added support for SQLAlchemy 1.3
- Added support for column comments (requires SQLAlchemy 1.2+; based on PR by koalas8)
- Fixed crash on unknown column types (``NullType``)

2.0.1

- Don't adapt dialect specific column types if they need special constructor arguments
(thanks Nicholas Martin for the PR)

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.