You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### SQLAlchemy to Pydantic Model Converter ([example](https://github.com/LuisLuii/FastAPIQuickCRUD/blob/main/tutorial/basic_usage/quick_usage_with_async_SQLALchemy_Base.py))
157
+
```python
158
+
import uvicorn
159
+
from fastapi import FastAPI, Depends
160
+
from sqlalchemy.orm import declarative_base
161
+
from fastapi_quickcrud import CrudMethods
162
+
from fastapi_quickcrud import sqlalchemy_to_pydantic
163
+
from fastapi_quickcrud.misc.memory_sql import sync_memory_db
164
+
165
+
app = FastAPI()
166
+
167
+
Base = declarative_base()
168
+
metadata = Base.metadata
169
+
170
+
from sqlalchemy importCHAR, Column, Integer
171
+
from sqlalchemy.ext.declarative import declarative_base
you can use [sqlacodegen](https://github.com/agronholm/sqlacodegen) to generate SQLAlchemy model for your table. This project is based on the model development and testing generated by sqlacodegen
0 commit comments