[sqlalchemy] Re: How to use sqlcodegen generate SQLModels

2023-03-22 Thread Val Huber
You might want to consider API Logic Server . It includes sqlacodegen, and uses it to build an executable project including an API and an Admin App. On Wednesday, March 22, 2023 at 3:55:20 PM UTC-7 Linson Abah wrote: > Hi, > I am trying to convert the sc

Re: [sqlalchemy] How to use sqlcodegen generate SQLModels

2023-03-22 Thread Mike Bayer
hey there- sqlacodegen support is on their github at https://github.com/agronholm/sqlacodegen/discussions/categories/q-a On Wed, Mar 22, 2023, at 6:55 PM, Linson Abah wrote: > Hi, > I am trying to convert the schema of a db to SQLModels: I have this short > script: > > *from subprocess impor

[sqlalchemy] How to use sqlcodegen generate SQLModels

2023-03-22 Thread Linson Abah
Hi, I am trying to convert the schema of a db to SQLModels: I have this short script: *from subprocess import calloutfile = 'models/dvdrental_models.py'generator = 'sqlmodels'call(['sqlacodegen', db_uri, '--generator', generator, '--outfile', outfile])* I got this Error. sqlacodegen: error: