0.3.0 (March 10, 2023)#
Release 0.3.0, require rics>=3.0.0. Add the id-translation-project
cookiecutter template.
Added#
New optional
schemaargument forSqlFetcher.Finished
Translator.load_persistent_instance()implementation (no longer experimental).The
SqlFetcher.finalize_statement()method, used to customize fetching behavior programmatically.New INFO-level begin/end log messages for
Translator.translate().Raise
ConcurrentOperationErrorinAbstractFetchers.fetch()to prevent race conditions.Limit
AbstractFetcher.fetch_all()to sources that contain the required placeholders (after mapping) by default.A large number of new debug messages with
extra-dict values set. These all have keysevent_keyandevent_stageas well as anexecuton_timeargument whenevent_stage='EXIT'. Additional extras depend on context.Caching logic to
AbstractFetcher. Only active when explicitly enabled andAbstractFetcher.onlineisFalse.Environment variable interpolation is now possible anywhere TOML config files. Key points:
Cache logic does NOT consider actual values (only names)
By default, simple interpolation is enabled.
TOML config metaconfig can be placed in
metaconf.toml, next to main config.Interpolation can be configured under
[env]in metaconf.
Changed#
Improve error reporting for unmapped required placeholders; warn about potential override issues.
Default
MultiFetcher.duplicate_source_discovered_actionincreased from ‘ignore’ to ‘warn’.Allow specifying
MultiFetcherinit arguments from the main TOML configuration file.Set default value of
MultiFetcher.max_workersto 1.Set default value of
SqlFetcher.include_viewstoFalse.
Fixed#
Minimum install requirement is now correctly set to
SQLAlchemy>=1.4.Now correctly always fetches all placeholders when performing a FETCH_ALL-operation.
Copy
allow_name_inheritanceinTranslator.copy().
Removed#
Redundant alias
types.ExtendedOverrideFunctionand related code.The
PandasFetcher.read_function_argsinit argument, sinceread_function_kwargsis much less error-prone.Custom handling of environment variables in
SqlFetcher.