MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / default_from

Method default_from

lib/sqlalchemy/sql/compiler.py:2442–2450  ·  view source on GitHub ↗

Called when a SELECT statement has no froms, and no FROM clause is to be appended. Gives Oracle Database a chance to tack on a ``FROM DUAL`` to the string output.

(self)

Source from the content-addressed store, hash-verified

2440 return get
2441
2442 def default_from(self) -> str:
2443 """Called when a SELECT statement has no froms, and no FROM clause is
2444 to be appended.
2445
2446 Gives Oracle Database a chance to tack on a ``FROM DUAL`` to the string
2447 output.
2448
2449 """
2450 return ""
2451
2452 def visit_override_binds(self, override_binds, **kw):
2453 """SQL compile the nested element of an _OverrideBinds with

Callers 3

_compose_select_bodyMethod · 0.95
test_platform_escapeMethod · 0.45
test_no_params_optionMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_platform_escapeMethod · 0.36
test_no_params_optionMethod · 0.36