SQLAlchemy-Notes
Table of Contents
1. What is SQLAlchemy
-
SQLAlchemy is an ORM for Python.
2. Install
2.1. Install Tool sqlacodegen
-
sqlacodegen is a tool that will create
SQLAlchemymodel code from a DB.-
Install
py -3 -m pip install sqlacodegen_v2 -
Manually apply a fix:
-
Open this file:
C:\Users\<username>\AppData\Local\Programs\Python\Python3xx\Lib\site-packages\sqlacodegen\codegen.py (1)1 Replace with your username and specific Python version -
Find this import statement
from inspect import ArgSpec -
Change it to:
from inspect import getfullargspec
-
-