elastic / elasticsearch-sql-odbc

ODBC driver for Elasticsearch SQL
Other
0 stars 30 forks source link

DSN parameter: support for "index_include_frozen" #151

Closed bpintea closed 5 years ago

bpintea commented 5 years ago

This PR adds the support for the configuration of the index_include_frozen parameter of ES/SQL (https://github.com/elastic/elasticsearch/pull/41558): the DSN parameter is called IndexIncludeFrozen.

The PR also changes the unit tests to centralize the way the generated JSON request is verified against an expected value: the ConnectedDBC class now has two new function members and these will construct the expected JSON object. This allows to easily support addition of any request configuration parameters, besides removing quite some code duplication.