Hello, how to log all SQL executed during database introspection?
I would like to understand how exactly SQLAlchemy does on introspection the
database.
Sorry for my English, I am still learning.
--
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocanti
dia...@cry5tal.in wrote:
> Ok, I've only put one() here for an example. I saw the query, there is no
> LIMIT. And it selects only filtered results, as i wanted.
> But I' m still unsure if i get it right about how SQLalchemy treat
> contains_eager-does it load data for mentioned relationships
Ok, I've only put one() here for an example. I saw the query, there is no
LIMIT. And it selects only filtered results, as i wanted.
But I' m still unsure if i get it right about how SQLalchemy treat
contains_eager-does it load data for mentioned relationships only from query
which we declare th
Юрий Пайков wrote:
> When I do a query like this
>
> result = session.query(A).\
> join(A.bs).\
> join(B.cs).\
> filter_by(C.somedata.in_([4455, 4466])).\
> options(contains_eager(A.bs).contains_eager(B.cs)).one()
>
> and list related C objects
>
> for b in result.bs:
>b.cs
>
> I get al
When I do a query like this
result = session.query(A).\
join(A.bs).\
join(B.cs).\
filter_by(C.somedata.in_([4455, 4466])).\
options(contains_eager(A.bs).contains_eager(B.cs)).one()
and list related C objects
for b in result.bs:
b.cs
I get all related to B C objects instead of only those wi