Home
last modified time | relevance | path

Searched refs:get_bind (Results 1 – 25 of 138) sorted by relevance

123456

/dports/www/py-turbogears2/TurboGears2-2.3.12/tests/
H A Dtest_balanced_session.py35 assert self.session.get_bind() == 'DEFAULT_ENGINE'
41 assert self.session.get_bind() == 'DEFAULT_ENGINE'
46 assert self.session.get_bind() == 'master'
50 assert self.session.get_bind() == 'master'
54 assert self.session.get_bind().startswith('slave')
58 assert self.session.get_bind() == 'master'
59 assert self.session.get_bind().startswith('slave')
63 assert self.session.get_bind() == 'slave2'
74 assert self.session.get_bind() == 'master'
75 assert self.session.get_bind().startswith('slave')
/dports/databases/py-sqlalchemy-utils/SQLAlchemy-Utils-0.37.9/tests/functions/
H A Dtest_get_bind.py3 from sqlalchemy_utils import get_bind
8 assert get_bind(session) == connection
11 assert get_bind(connection) == connection
16 assert get_bind(article) == connection
20 get_bind(None)
/dports/databases/py-sqlalchemy14/SQLAlchemy-1.4.27/test/orm/
H A Dtest_bind.py353 def get_bind(self, **kw): member in BindIntegrationTest.test_bind_through_execute.GetBindSession
354 canary.get_bind(**kw)
355 return Session.get_bind(self, **kw)
386 mock.call.get_bind(**expected_get_bind_args),
629 session.get_bind,
640 session.get_bind,
727 session.get_bind(clause=self.tables.concrete_sub_table),
737 is_(session.get_bind(clause=stmt), base_class_bind)
745 is_(session.get_bind(clause=stmt), base_class_bind)
761 is_(session.get_bind(clause=stmt), base_class_bind)
[all …]
H A Dtest_scoping.py182 def get_bind(self, mapper=None, **kwargs): member in ScopedSessionTest.test_get_bind_custom_session_subclass.MySession
183 return super().get_bind(mapper=mapper, **kwargs)
188 def get_bind(self, mapper=None, *args, **kwargs): member in ScopedSessionTest.test_get_bind_custom_session_subclass.MySession
189 return super().get_bind(mapper, *args, **kwargs)
193 def get_bind(self, mapper=None, *args, **kwargs): member in ScopedSessionTest.test_get_bind_custom_session_subclass.MySession
194 return super(MySession, self).get_bind(
200 def get_bind(self, mapper=None, **kwargs): member in ScopedSessionTest.test_get_bind_custom_session_subclass.MySession
201 return super(MySession, self).get_bind(
206 is_(s1.get_bind(), testing.db)
210 is_(ss.get_bind(), testing.db)
/dports/databases/py-sqlalchemy10/SQLAlchemy-1.0.14/test/orm/
H A Dtest_bind.py310 session.get_bind(self.classes.BaseClass),
321 session.get_bind(self.classes.BaseClass),
332 session.get_bind(self.classes.BaseClass),
336 session.get_bind(self.classes.JoinedSubClass),
349 session.get_bind(self.classes.BaseClass),
355 session.get_bind(self.classes.JoinedSubClass),
380 session.get_bind(self.classes.BaseClass),
395 session.get_bind(self.classes.BaseClass),
406 session.get_bind(self.classes.ClassWMixin),
430 session.get_bind(self.classes.BaseClass),
[all …]
/dports/databases/py-sqlalchemy12/SQLAlchemy-1.2.19/test/orm/
H A Dtest_bind.py398 is_(session.get_bind(self.classes.BaseClass), testing.db)
404 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
410 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
411 is_(session.get_bind(self.classes.JoinedSubClass), base_class_bind)
423 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
432 is_(session.get_bind(self.classes.ConcreteSubClass), testing.db)
445 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
452 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
458 is_(session.get_bind(self.classes.ClassWMixin), base_class_bind)
476 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
[all …]
/dports/databases/py-sqlalchemy11/SQLAlchemy-1.1.18/test/orm/
H A Dtest_bind.py328 session.get_bind(self.classes.BaseClass),
339 session.get_bind(self.classes.BaseClass),
350 session.get_bind(self.classes.BaseClass),
354 session.get_bind(self.classes.JoinedSubClass),
367 session.get_bind(self.classes.BaseClass),
373 session.get_bind(self.classes.JoinedSubClass),
398 session.get_bind(self.classes.BaseClass),
413 session.get_bind(self.classes.BaseClass),
424 session.get_bind(self.classes.ClassWMixin),
448 session.get_bind(self.classes.BaseClass),
[all …]
/dports/databases/py-sqlalchemy13/SQLAlchemy-1.3.24/test/orm/
H A Dtest_bind.py397 is_(session.get_bind(self.classes.BaseClass), testing.db)
403 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
409 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
410 is_(session.get_bind(self.classes.JoinedSubClass), base_class_bind)
422 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
431 is_(session.get_bind(self.classes.ConcreteSubClass), testing.db)
444 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
451 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
457 is_(session.get_bind(self.classes.ClassWMixin), base_class_bind)
475 is_(session.get_bind(self.classes.BaseClass), base_class_bind)
[all …]
/dports/mail/mailman3/mailman-3.3.1/src/mailman/database/alembic/versions/
H A D46e92facee7_add_serverowner_domainowner.py46 if not exists_in_db(op.get_bind(), 'user', 'is_server_owner'):
51 if not is_sqlite(op.get_bind()):
56 if not is_sqlite(op.get_bind()):
58 if not exists_in_db(op.get_bind(), 'domain', 'contact_address'):
H A D33e1f5f6fa8_.py50 if is_sqlite(op.get_bind()):
58 if is_sqlite(op.get_bind()):
62 if op.get_bind().dialect.name == 'postgresql':
H A D89913992dd5a_remove_mime_is_default_digest.py21 if not is_sqlite(op.get_bind()):
29 op.get_bind(), 'mailinglist', 'mime_is_default_digest'):
H A D15401063d4e3_roster_visibility.py23 op.get_bind(), 'mailinglist', 'member_roster_visibility'):
31 if not is_sqlite(op.get_bind()):
H A D42756496720_header_matches.py34 connection = op.get_bind()
57 if not exists_in_db(op.get_bind(), 'mailinglist', 'header_matches'):
65 connection = op.get_bind()
H A D2d2d0ef0828f_add_tag_column.py22 if not exists_in_db(op.get_bind(), 'headermatch', 'tag'):
30 if not is_sqlite(op.get_bind()):
H A D51b7f92bd06c_initial.py45 if not is_sqlite(op.get_bind()):
57 if not exists_in_db(op.get_bind(), 'mailinglist', 'acceptable_aliases_id'):
H A Dd151c0b8d6f7_bounce_parameters.py27 if not exists_in_db(op.get_bind(), table, col):
34 if not is_sqlite(op.get_bind()):
H A D16c2b25c7b_list_subscription_policy.py24 if not exists_in_db(op.get_bind(), 'mailinglist', 'subscription_policy'):
42 if not is_sqlite(op.get_bind()):
H A D33bc0099223_add_member_indexes.py24 if not is_mysql(op.get_bind()):
40 if not is_mysql(op.get_bind()):
H A Dd4fbb4fd34ca_header_match_order.py26 if not is_mysql(op.get_bind()):
46 if not is_mysql(op.get_bind()):
H A D7b254d88f122_members_and_list_moderation_action.py73 connection = op.get_bind()
86 connection = op.get_bind()
/dports/databases/py-sqlalchemy14/SQLAlchemy-1.4.27/test/orm/declarative/
H A Dtest_deprecations.py27 is_(s.get_bind(User), testing.db)
42 is_(s.get_bind(User), testing.db)
57 is_(s.get_bind(User), testing.db)
/dports/devel/py-taskflow/taskflow-4.6.3/taskflow/persistence/backends/sqlalchemy/alembic/versions/
H A D0bc3e1a3c135_set_result_meduimtext_type.py31 bind = op.get_bind()
39 bind = op.get_bind()
H A D2ad4984f2864_switch_postgres_to_json_native.py46 b = op.get_bind()
54 b = op.get_bind()
/dports/databases/py-sqlalchemy-utils/SQLAlchemy-Utils-0.37.9/docs/
H A Dorm_helpers.rst19 get_bind section in ORM helpers
22 .. autofunction:: get_bind
/dports/devel/py-aws-xray-sdk/aws-xray-sdk-2.8.0/aws_xray_sdk/ext/flask_sqlalchemy/
H A Dquery.py42 def get_bind(self, mapper=None, clause=None): member in XRaySignallingSession
50 return XRaySession.get_bind(self, mapper, clause)

123456