code
stringlengths
3
6.57k
callback()
append(self, slot)
self.callbacks.append(slot)
print(slot)
InheritedTest(_poly_fixtures._Polymorphic)
InheritedJoinTest(InheritedTest, AssertsCompiledSQL)
test_single_prop(self)
fixture_session()
sess.query(Company)
join(Company.employees)
test_force_via_select_from(self)
fixture_session()
sess.query(Company)
filter(Company.company_id == Engineer.company_id)
filter(Engineer.primary_language == "java")
sess.query(Company)
select_from(Company, Engineer)
filter(Company.company_id == Engineer.company_id)
filter(Engineer.primary_language == "java")
test_single_prop_of_type(self)
fixture_session()
sess.query(Company)
join(Company.employees.of_type(Engineer)
test_explicit_polymorphic_join_one(self)
fixture_session()
sess.query(Company)
join(Engineer)
filter(Engineer.engineer_name == "vlad")
test_explicit_polymorphic_join_two(self)
fixture_session()
sess.query(Company)
join(Engineer, Company.company_id == Engineer.company_id)
filter(Engineer.engineer_name == "vlad")
test_auto_aliasing_multi_link(self)
fixture_session()
sess.query(Company)
join(Company.employees.of_type(Engineer)
join(Company.employees.of_type(Manager)
join(Company.employees.of_type(Boss)
JoinOnSynonymTest(_fixtures.FixtureTest, AssertsCompiledSQL)
setup_mappers(cls)
relationship(Address)
synonym("addresses")
cls.mapper_registry.map_imperatively(Address, addresses)
test_join_on_synonym(self)
fixture_session()
query(User)
join(User.ad_syn)
JoinTest(QueryTest, AssertsCompiledSQL)
test_filter_by_from_join(self, onclause_type, use_legacy)
self.classes("User", "Address")
self.tables("addresses")
self.tables("users")
fixture_session()
sess.query(User)
select(User)
set_label_style(LABEL_STYLE_TABLENAME_PLUS_COL)
q.join(Address, User.addresses)
q.join(User.addresses)
q.join(Address)
q.join(Address, User.id == Address.user_id)
q.join(address_table)
q.filter_by(email_address="foo")
q.reset_joinpoint()
filter_by(name="user")
test_join_relationship_propagate_attrs(self)
select(users)
join(User.addresses)
inspect(User)
testing.combinations((True,)
testing.combinations((True,)
test_join_with_entities(self, legacy, threelevel)
self.classes("User", "Address", "Dingaling")
fixture_session()
sess.query(User)
join(Address)
with_entities(Address.id)
select(User)
join(Address)
with_only_columns(Address.id)
stmt.set_label_style(LABEL_STYLE_TABLENAME_PLUS_COL)
stmt.join(Address.dingaling)
with_entities(Dingaling.id)
stmt.join(Address.dingaling)
testing.combinations((True,)
testing.combinations((True,)
test_join_and_union_with_entities(self, legacy, threelevel)
self.classes("User", "Address", "Dingaling")
fixture_session()
sess.query(User)
join(Address)
with_entities(Address.id)
select(User)
join(Address)
with_only_columns(Address.id)
stmt.set_label_style(LABEL_STYLE_TABLENAME_PLUS_COL)
stmt.join(Address.dingaling)
with_entities(Dingaling.id)
sess.query(Dingaling.id)
stmt.join(Address.dingaling)