MCPcopy Index your code
hub / github.com/piccolo-orm/piccolo / AutoUpdateTable

Class AutoUpdateTable

tests/table/test_update.py:581–585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

579
580
581class AutoUpdateTable(Table, tablename="my_table"):
582 name = Varchar()
583 modified_on = Timestamp(
584 auto_update=datetime.datetime.now, null=True, default=None
585 )
586
587
588class TestAutoUpdate(TestCase):

Callers 2

test_saveMethod · 0.85
test_updateMethod · 0.85

Calls 2

VarcharClass · 0.90
TimestampClass · 0.90

Tested by 2

test_saveMethod · 0.68
test_updateMethod · 0.68