Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ execute
Method
execute
test/sql/test_functions.py:1661–1662 ·
view source on GitHub ↗
(field)
Source
from the content-addressed store, hash-verified
1659
date = datetime.date(2010, 5, 1)
1660
1661
def
execute(field):
1662
return
connection.execute(select(extract(field, date))).scalar()
1663
1664
assert execute(
"year"
) == 2010
1665
assert execute(
"month"
) == 5
Callers
15
_sqlite_partial_idx
Method · 0.45
test_execute_deprecated
Method · 0.45
test_func_embedded_whereclause
Method · 0.45
test_func_embedded_valuesbase
Method · 0.45
test_inserted_pk_no_returning
Method · 0.45
test_seq_multivalues_inline
Method · 0.45
test_seq_multivalues_executemany
Method · 0.45
test_inserted_pk_implicit_returning
Method · 0.45
test_freestanding_sequence_via_autoinc
Method · 0.45
test_insert_via_seq
Method · 0.45
test_seq_nonpk
Method · 0.45
test_default_core_w_default
Method · 0.45
Calls
3
select
Function · 0.90
extract
Function · 0.90
scalar
Method · 0.45
Tested by
no test coverage detected