Sqlacodegen freeze when generate models.py

59 views
Skip to first unread message

Leandro Lázaro

unread,
Aug 1, 2023, 7:57:42 AM8/1/23
to sqlalchemy
Hello,

When I use the command sqlacodegen mssql+pymssql://USER:PASS@IP:PORT/DB > model.py, the process hangs and continues running for several hours without any results. The database I'm trying to generate models.py for is quite large (over 1000 tables). Is the execution time normal, or is something wrong? I've tested the connection string with engine.connect(), and it seems to be working fine. Am I doing something wrong? Thank you in advance.

Best regards,

Leandro L. A. Vieira

Mike Bayer

unread,
Aug 1, 2023, 8:17:32 AM8/1/23
to noreply-spamdigest via sqlalchemy
hi -

--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
 
 
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages