Answer the question
In order to leave comments, you need to log in
How to form a query using sqlalchemy?
I have a table
class Order(Base):
__tablename__ = "orders"
id = sqlalchemy.Column(sqlalchemy.Integer, primary_key=True)
uuid = sqlalchemy.Column(UUID(as_uuid=True), default=uuid.uuid4, unique=True)
type = sqlalchemy.Column(sqlalchemy.String)
status = sqlalchemy.Column(sqlalchemy.String)
cluster_uuid = sqlalchemy.Column(UUID(as_uuid=False))
params = sqlalchemy.Column(sqlalchemy_jsonfield.JSONField(enforce_string=False, enforce_unicode=False), default="{}")
db = SessionLocal()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question