tdfs4ds.feature_props.state¶
tdfs4ds.feature_props.state
¶
Is the feature-properties machinery present in this store? (no statement on the run path)
PRESENT is the module flag: True / False once known, None while unknown. It is set,
without any statement, from the single DBC read connect() already makes (:func:set_from_tables),
set True by the first declaration and reset by setup(). present() answers from the flag
and, only while it is unknown (a session that never called connect()), makes ONE read of DBC per
store, cached. The flag follows the store: switching tdfs4ds.SCHEMA makes it unknown again.
sql_literal
¶
Escape value for use inside a single-quoted SQL string literal.
For the DBC probes and catalog predicates that compare a name as data
(WHERE DatabaseName = '…'). The caller supplies the surrounding quotes.
set_from_tables
¶
Set the flag from the object names connect() read from DBC (no statement).
present
¶
Whether the properties table exists in the primary store. Answers from the flag; reads DBC once (cached) only while the flag is unknown and read is true. Fail-closed: an unreadable DBC is 'absent'.