MCPcopy
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
407class 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
415class Or(AllOf):

Callers 15

test_expand_dml_bulkMethod · 0.90
test_derived_dml_bulkMethod · 0.90
test_post_update_m2oMethod · 0.90
test_post_update_o2mMethod · 0.90
test_bulk_insertMethod · 0.90
test_bulk_updateMethod · 0.90
test_bulk_deleteMethod · 0.90
test_one_to_many_saveMethod · 0.90
test_many_to_one_saveMethod · 0.90
test_one_to_many_saveMethod · 0.90
test_many_to_one_saveMethod · 0.90

Calls

no outgoing calls

Tested by 15

test_expand_dml_bulkMethod · 0.72
test_derived_dml_bulkMethod · 0.72
test_post_update_m2oMethod · 0.72
test_post_update_o2mMethod · 0.72
test_bulk_insertMethod · 0.72
test_bulk_updateMethod · 0.72
test_bulk_deleteMethod · 0.72
test_one_to_many_saveMethod · 0.72
test_many_to_one_saveMethod · 0.72
test_one_to_many_saveMethod · 0.72
test_many_to_one_saveMethod · 0.72