2015-11-19 11:45:48 -06:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
2024-01-01 02:43:48 -06:00
|
|
|
# Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
2015-11-19 11:45:48 -06:00
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
2016-01-18 08:48:14 -06:00
|
|
|
|
2021-11-24 05:52:57 -06:00
|
|
|
from flask_babel import gettext
|
2015-11-19 11:45:48 -06:00
|
|
|
from pgadmin.browser.server_groups.servers.types import ServerType
|
|
|
|
|
|
|
|
|
|
|
|
class PPAS(ServerType):
|
2017-04-18 07:33:27 -05:00
|
|
|
UTILITY_PATH_LABEL = gettext("EDB Advanced Server Binary Path")
|
|
|
|
UTILITY_PATH_HELP = gettext(
|
|
|
|
"Path to the directory containing the EDB Advanced Server utility"
|
|
|
|
" programs (pg_dump, pg_restore etc)."
|
|
|
|
)
|
|
|
|
|
2024-06-11 07:37:22 -05:00
|
|
|
def instance_of(self, ver=None):
|
2018-06-21 08:00:37 -05:00
|
|
|
return "EnterpriseDB" in ver
|
2015-11-19 11:45:48 -06:00
|
|
|
|
2016-06-21 08:21:06 -05:00
|
|
|
|
2015-11-19 11:45:48 -06:00
|
|
|
# Default Server Type
|
2016-06-17 08:35:16 -05:00
|
|
|
PPAS('ppas', gettext("EDB Advanced Server"), 2)
|