sqlacodegen icon indicating copy to clipboard operation
sqlacodegen copied to clipboard

Option --generator only works in pre-release package

Open gregbrowndev opened this issue 1 year ago • 3 comments

Things to check first

  • [X] I have searched the existing issues and didn't find my bug already reported there

  • [X] I have checked that my bug is still present in the latest release

Sqlacodegen version

2.3.0.post1

SQLAlchemy version

1.4.48

RDBMS vendor

PostgreSQL

What happened?

Trying to follow README:

sqlacodegen --generator dataclasses sqlite:///database.db

Error:

sqlacodegen: error: unrecognized arguments: --generator sqlite:///database.db

It does work when 3.0.0rc2 installed with pre-release allowed:

pip install --pre sqlacodegen

Should ideally keep README and docs in branch until version is released to avoid confusion.

Cheers though!

Database schema for reproducing the bug

N/A

gregbrowndev avatar Jun 12 '23 19:06 gregbrowndev

Confirming same bug in sqlacodegen = "^2.3.0.post1"

Works with 3.9.9rc2 with poetry also:

poetry remove sqlacodegen
poetry add [email protected]

Insighttful avatar Jun 20 '23 12:06 Insighttful

Yeah, not a bug. The final release was not supposed to take this long, but I've been bogged down in other projects.

agronholm avatar Jun 20 '23 13:06 agronholm

same issue, but i found it works normally in 3.0.0rc3

crazydiamondzgy avatar Oct 30 '23 03:10 crazydiamondzgy