MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / process

Method process

lib/sqlalchemy/dialects/sqlite/base.py:1274–1287  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

1272 format_ = self._storage_format
1273
1274 def process(value):
1275 if value is None:
1276 return None
1277 elif isinstance(value, datetime_date):
1278 return format_ % {
1279 "year": value.year,
1280 "month": value.month,
1281 "day": value.day,
1282 }
1283 else:
1284 raise TypeError(
1285 "SQLite Date type only accepts Python "
1286 "date objects as input."
1287 )
1288
1289 return process
1290

Callers 12

visit_truediv_binaryMethod · 0.45
visit_castMethod · 0.45
visit_extractMethod · 0.45
limit_clauseMethod · 0.45
_on_conflict_targetMethod · 0.45
visit_create_indexMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected