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

Method default_from

lib/sqlalchemy/sql/compiler.py:2382–2390  ·  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

2380 return get
2381
2382 def default_from(self) -> str:
2383 """Called when a SELECT statement has no froms, and no FROM clause is
2384 to be appended.
2385
2386 Gives Oracle Database a chance to tack on a ``FROM DUAL`` to the string
2387 output.
2388
2389 """
2390 return ""
2391
2392 def visit_override_binds(self, override_binds, **kw):
2393 """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