Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Add getVersion function to db clients to get version details #104

Merged
merged 8 commits into from
Aug 6, 2020

Conversation

MasterOdin
Copy link
Member

This unifies aspects of getting version information across databases as prior to this. In #80, I added the version function that returns version details, except that this was inconsistent across providers where some would return just the version number string (e.g. 8.0.21) and then some would return additional details (e.g. PostgreSQL 9.4.26 on x86_64-pc-linux-gnu (Debian 9.4.26-1.pgdg90+1), compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit).

This deprecates the version() function in favor of getVersion() which returns an object that has the properties of name, version, and string. name is the minimal string name of the client (e.g. PostgreSQL or MariaDB), version is the numerical identifier (e.g. 9.4.26), and then string is that full string.

This, combined with #100 cleans up some of the version comparisons in the test suite, as well as will be used in follow-up work for adding support for minimally redshift.

Signed-off-by: Matthew Peveler <[email protected]>
Signed-off-by: Matthew Peveler <[email protected]>
Signed-off-by: Matthew Peveler <[email protected]>
Signed-off-by: Matthew Peveler <[email protected]>
Signed-off-by: Matthew Peveler <[email protected]>
@MasterOdin MasterOdin merged commit 87a7f39 into master Aug 6, 2020
@MasterOdin MasterOdin deleted the version branch August 6, 2020 16:39
@MasterOdin MasterOdin mentioned this pull request Aug 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant