Skip to content

Releases: MarketSquare/Robotframework-Database-Library

v.2.1.2

15 Feb 12:41

Choose a tag to compare

What's Changed

  • Removed Excellib dependency as it's not needed anymore #240
  • Support RF dotted dictionary access syntax by #239
  • Better colors in logging query results when using dark mode #238

Full Changelog: v.2.1.1...v.2.1.2

v.2.1.1

10 Feb 19:57

Choose a tag to compare

What's Changed

  • Support SAP HANA via ODBC - using "SERVERNODE" parameter in connection string by @RaffaeleDV in #236

v.2.1.0

04 Feb 15:03

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v.2.0.4...v.2.1.0

v.2.0.4

11 Oct 08:11

Choose a tag to compare

What's Changed

  • Fix #227 path length issue with ibmdb on Windows

Full Changelog: v2.0.3...v.2.0.4

v2.0.3

09 Oct 09:21

Choose a tag to compare

What's Changed

  • Fix version visibility in keyword documentation by @eeter in #226

New Contributors

Full Changelog: v2.0.2...v2.0.3

v2.0.2

01 Oct 15:20

Choose a tag to compare

Fix #223 ImportError with ibm_db > version 3.2.0

If running on Windows and with ibm_db or ibm_db_dbi module, the library determines current installation path of the module, adds clidriver/bin to it and adds the result to list of DLL's using os.add_dll_directory.

Full Changelog: v2.0.0...v2.0.2

v2.0.0

01 Oct 10:29
d4ba70a

Choose a tag to compare

Database Library 2.0.0 is a new major release, bringing new keywords with inline assertions using Assertion Engine (#208) and retry mechanism (#209), logging query results in table format (#147), support for custom connection parameters (#220) and other improvements.

This version also contains renamed keyword parameters and deprecations of keywords and requires Python 3.8 or newer and Robot Framework 5.0.1 or newer.

New features and improvements

  • New keywords Check Row Count and Check Query Result with assertion engine and retry mechanism. #208 #209
  • Query results are now automatically printed in table format in RF log. This behaviour can be adjusted or disabled. See docs for details. #147
  • Handling of connection parameters in keyword Connect To Database was deeply refactored. There is only one mandatory parameter left - db_module, all other parameters are optional now. Plus any custom parameters are supported now - both provided as keyword arguments or in config file. See details in keyword docs. #220
  • Other logging in keywords was cleaned and improved.
  • Keyword parameters were renamed according to Python PEP8 - snake_case instead of formerly used camelCase. See more details below in the deprecations section.
  • Support for OUT params when calling a stored procedure in MSSQL, which doesn't return any result sets - implemented via new keyword argument additional_output_params. See extended docs of the Call Stored Procedure keyword. #219
  • The documentation of all keywords and the entire library was deeply cleaned, consolidated and improved.

Backwards incompatibilities and deprecations

  • This version requires Python 3.8 or newer and Robot Framework 5.0.1 or newer.
  • Keyword parameters were renamed according to Python PEP8 - snake_case instead of formerly used camelCase. Moreover, some parameter names were changed to shorter or more precise versions. The old parameter names are still supported, but deprecated - the library logs a warning in case of their usage. The deprecated old-named parameters will be removed in future versions. #188
  • Introducing new keywords Check Row Count and Check Query Result with inline assertions allows to deprecate some redundant keywords. They will be removed in future versions.
  • Support of custom parameters in the Connect To Database keyword allows to deprecate the Connect To Database Using Custom Params keyword - it's redundant now. The deprecated keyword will be removed in future versions.
  • During refactoring of connection parameters, some hardcoded fallback values were removed. These values can be still set, if required, with new support of any custom parameters in the Connect To Database keyword.
    • Stop using localhost as fallback value for DB host
    • Stop using {SQL Server} as fallback value for pyodbc driver
    • Stop using TCPIP as fallback valued for ibm_db protocol

Full Changelog: v1.4.4...v2.0.0

v1.4.4

28 Feb 15:36
26b49ef

Choose a tag to compare

What's Changed

  • Fix handling query params for MS SQL - switch internal params handling from lists to tuples #211 in #212

Full Changelog: v1.4.3...v1.4.4

v1.4.3

19 Dec 20:30

Choose a tag to compare

Move new parameters, introduced in 1.4.2, to the end in order to avoid possible backwards incompatibility

v1.4.2

19 Dec 19:31

Choose a tag to compare

What's Changed

  • Fix #202 - no empty list is passed to the database module if no sql params were specified. Fixes an error if the database module doesn't accept an empty list as parameters.
  • Fix #184 - Improvements in parsing the PL/SQL script files.
  • The keyword Execute SQL Script has a new parameter split now - setting it to False disables splitting the SQL script into statements. In this case the entire script content will be passed to the database module for execution.
  • The keyword Execute SQL String has a new parameter omitTrailingSemicolon - for explicit instruction, if the trailing semicolon (;) at the SQL string end should be removed or not.
    • Setting it to False will fix an error, if the Oracle database exceptionally requires a semicolon at the end of the PL/SQL block. More details available here.
    • If not specified, it's decided based on the current database module in use. For Oracle, the semicolon is removed by default.
  • #201 - improved docs of the Query keyword - added a note, that result values might be not always tuples (depends on the database module)

Full Changelog: v1.4.1...v1.4.2

Thanks a lot to all contributors!

@amochin