mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-05-08 04:29:16 -05:00
Update ParseVersion function in PGDump client
This commit is contained in:
@@ -47,7 +47,7 @@ func New() *Client {
|
|||||||
|
|
||||||
// ParseVersion returns the PGVersion enum member for the given PostgreSQL
|
// ParseVersion returns the PGVersion enum member for the given PostgreSQL
|
||||||
// version as a string.
|
// version as a string.
|
||||||
func ParseVersion(version string) (PGVersion, error) {
|
func (Client) ParseVersion(version string) (PGVersion, error) {
|
||||||
switch version {
|
switch version {
|
||||||
case "13":
|
case "13":
|
||||||
return PG13, nil
|
return PG13, nil
|
||||||
|
|||||||
Reference in New Issue
Block a user