httk.store.backend.duckdb.hooks¶
DuckDB engine hooks: the per-dialect behavior the neutral SQL engine dispatches to.
httk.store.backend.sql.engine keeps only neutral dialect dispatch; the
DuckDB-specific bodies live here and are imported lazily on first use by the
_DIALECT_HOOKS registry in httk.store.backend.sql.engine.
Functions¶
|
Install the exact-fraction scalar function on every DuckDB connection. |
Module Contents¶
- httk.store.backend.duckdb.hooks.install_engine_functions(engine)¶
Install the exact-fraction scalar function on every DuckDB connection.
Fraction values are persisted canonically as text because SQL integer products can overflow long before a valid Python
Fractiondoes;httk_fraction_scaled_equalpreserves exact comparisons without touching presentation float columns.- Parameters:
engine (sqlalchemy.Engine) – The DuckDB SQLAlchemy engine to install the function on.
- Returns:
None.
- Return type:
None