Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ Conditional
Class
Conditional
lib/sqlalchemy/testing/assertsql.py:407–412 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
405
406
407
class
Conditional(EachOf):
408
def
__init__(self, condition, rules, else_rules):
409
if
condition:
410
super().__init__(*rules)
411
else
:
412
super().__init__(*else_rules)
413
414
415
class
Or(AllOf):
Callers
15
test_expand_dml_bulk
Method · 0.90
test_derived_dml_bulk
Method · 0.90
test_post_update_m2o
Method · 0.90
test_post_update_o2m
Method · 0.90
test_bulk_insert
Method · 0.90
test_bulk_update
Method · 0.90
test_bulk_delete
Method · 0.90
test_one_to_many_save
Method · 0.90
test_many_to_one_save
Method · 0.90
test_one_to_many_save
Method · 0.90
test_many_to_one_save
Method · 0.90
test_bidirectional_multilevel_save
Method · 0.90
Calls
no outgoing calls
Tested by
15
test_expand_dml_bulk
Method · 0.72
test_derived_dml_bulk
Method · 0.72
test_post_update_m2o
Method · 0.72
test_post_update_o2m
Method · 0.72
test_bulk_insert
Method · 0.72
test_bulk_update
Method · 0.72
test_bulk_delete
Method · 0.72
test_one_to_many_save
Method · 0.72
test_many_to_one_save
Method · 0.72
test_one_to_many_save
Method · 0.72
test_many_to_one_save
Method · 0.72
test_bidirectional_multilevel_save
Method · 0.72