Skip to content

Possible to eager load in select using hybrid expression? #10120

Discussion options

You must be logged in to vote

Here's an MCVE. See if you can modify this to show the mis-behavior you are seeing

import asyncio

from sqlalchemy import CheckConstraint
from sqlalchemy import Column
from sqlalchemy import ForeignKey
from sqlalchemy import func
from sqlalchemy import Integer
from sqlalchemy import select
from sqlalchemy import SQLColumnExpression
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.ext.asyncio import create_async_engine
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy.orm import declarative_base
from sqlalchemy.orm import relationship

Base = declarative_base()


class Feature(Base):
    __tablename__ = "features"
    id = Column(Integer, primary_key=True)
    

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zzzeek
Comment options

Answer selected by dusktreader
@zzzeek
Comment options

@dusktreader
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants