MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / EvalsNull

Class EvalsNull

test/orm/test_unitofworkv2.py:3588–3598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3586 from sqlalchemy import TypeDecorator
3587
3588 class EvalsNull(TypeDecorator):
3589 impl = String(50)
3590 cache_ok = True
3591 cache_ok = True
3592
3593 should_evaluate_none = True
3594
3595 def process_bind_param(self, value, dialect):
3596 if value is None:
3597 value = "nothing"
3598 return value
3599
3600 Table(
3601 "test",

Callers 1

define_tablesMethod · 0.85

Calls 1

StringClass · 0.90

Tested by 1

define_tablesMethod · 0.68