MCPcopy Create free account
hub / github.com/dbcli/mycli / server_date

Function server_date

mycli/packages/key_binding_utils.py:15–20  ·  view source on GitHub ↗
(sqlexecute: SQLExecute, quoted: bool = False)

Source from the content-addressed store, hash-verified

13
14
15def server_date(sqlexecute: SQLExecute, quoted: bool = False) -> str:
16 server_date_str = sqlexecute.now().strftime('%Y-%m-%d')
17 if quoted:
18 return f"'{server_date_str}'"
19 else:
20 return server_date_str
21
22
23def server_datetime(sqlexecute: SQLExecute, quoted: bool = False) -> str:

Callers

nothing calls this directly

Calls 1

nowMethod · 0.45

Tested by

no test coverage detected