MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / MyBool

Class MyBool

test/sql/test_types.py:4326–4335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4324 self.value = value
4325
4326 class MyBool(TypeDecorator):
4327 impl = Boolean(create_constraint=True)
4328 cache_ok = True
4329
4330 # future method
4331 def process_literal_param(self, value, dialect):
4332 return value.value
4333
4334 def process_bind_param(self, value, dialect):
4335 return value.value
4336
4337 m = MetaData()
4338 t1 = Table("t", m, Column("x", MyBool()))

Calls 1

BooleanClass · 0.90