Ok never mind!
I realized I could scrap this entire functionality and replace it with
something else.
The use-case was trying to detect the backup renewal options for SSL
Certificates if the private key Or account key is revoked. (foo is an ACME
order if available, bar is the certificate).
It’s been a while since I’ve worked on stuff like this, but IIRC the simplest
way was to use a function that accepts an ID and to flush in SqlAlchemy before
executing it. Then you select the necessary row fields within the sql function,
instead of passing args in or trying to pass a row in.
On Sat, May 16, 2020, at 1:04 PM, Erol Merdanović wrote:
> Hi
>
> I have a model definition
>
> class Product(db.Model):
> __tablename__ = "products"
>
> id = db.Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
> sku = db.Column(db.String(255), nullable=False, unique=True,
Hi
I have a model definition
class Product(db.Model):
__tablename__ = "products"
id = db.Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
sku = db.Column(db.String(255), nullable=False, unique=True, index=True)
Product.base_price = column_property(