el1xr_opt.Modules.oM_OutputData_duckdb

el1xr_opt.Modules.oM_OutputData_duckdb#

el1xr_opt.Modules.oM_OutputData_duckdb.safe_identifier(name)[source]#

Make a SQL-safe identifier: only letters, digits, and underscores. (Codacy-friendly and prevents odd characters from leaking into identifiers.)

Return type:

str

Parameters:

name (str)

el1xr_opt.Modules.oM_OutputData_duckdb.save_to_duckdb(DirName, CaseName, model, optmodel)[source]#

Save optimization model data to a DuckDB database in a Codacy-compliant way (no formatted SQL strings).