MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / escape_date

Function escape_date

tortoise/converters.py:122–124  ·  view source on GitHub ↗
(obj: datetime.date, mapping=None)

Source from the content-addressed store, hash-verified

120
121
122def escape_date(obj: datetime.date, mapping=None) -> str:
123 fmt = "'{0.year:04}-{0.month:02}-{0.day:02}'"
124 return fmt.format(obj)
125
126
127def escape_struct_time(obj: time.struct_time, mapping=None) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…