Relative Content

Tag Archive for pythonsqlalchemyfastapi

CRUD operation with FastAPI and sqlalchemy

I’m new to python and fastapi and i’m to create a simple CRUD to create a user and if the user gets created correctly, create a blank profile with the user_id of the created user.

Retrieve JSON objects

model class MyGPTs(Base): __tablename__ = “my_gpts” __table_args__ = {‘extend_existing’: True} # Add this line id = Column(Integer, primary_key=True) bot_identifier = Column(String, nullable=False, default=”bot”) unique_id = Column(String, nullable=True, default=str(ObjectId())) user_id = Column(String, nullable=True) account_id = Column(String, nullable=False) project_id = Column(String, nullable=False) name = Column(String, nullable=True) app_type = Column(Integer, ForeignKey(“app_types.id”)) profile_image = Column(String, nullable=False) bot_type = Column(String, […]

Dynamic query parameters

I implement FastAPI, SQLAlchemy service that has integration with ERM software. ERM software stores data in table as