MCPcopy Create free account
hub / github.com/CloverHealth/temporal-sqlalchemy / build_clock_class

Function build_clock_class

temporal_sqlalchemy/clock.py:186–195  ·  view source on GitHub ↗

build a clock model

(
        name: str,
        metadata: sa.MetaData,
        props: typing.Dict)

Source from the content-addressed store, hash-verified

184
185
186def build_clock_class(
187 name: str,
188 metadata: sa.MetaData,
189 props: typing.Dict) -> nine.Type[EntityClock]:
190 """ build a clock model """
191 base_classes = (
192 EntityClock,
193 declarative.declarative_base(metadata=metadata),
194 )
195 return type('%sClock' % name, base_classes, props)
196
197
198def build_clock_table(entity_table: sa.Table,

Callers 2

test_build_clock_classFunction · 0.90
temporal_mapFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_build_clock_classFunction · 0.72