2017-08-25 17:53:03 +05:30
|
|
|
##########################################################################
|
|
|
|
|
#
|
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
|
#
|
2018-01-05 10:42:49 +00:00
|
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
2017-08-25 17:53:03 +05:30
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
|
#
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
|
|
from flask_babel import gettext
|
|
|
|
|
from pgadmin.browser.server_groups.servers.types import ServerType
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class GPDB(ServerType):
|
2017-08-25 21:35:06 +05:30
|
|
|
UTILITY_PATH_LABEL = gettext("Greenplum Database Binary Path")
|
|
|
|
|
UTILITY_PATH_HELP = gettext(
|
|
|
|
|
"Path to the directory containing the Greenplum Database utility"
|
|
|
|
|
" programs (pg_dump, pg_restore etc)."
|
|
|
|
|
)
|
|
|
|
|
|
2017-09-11 11:16:58 +05:30
|
|
|
@property
|
|
|
|
|
def icon(self):
|
|
|
|
|
return "gpdb.png"
|
|
|
|
|
|
2017-08-25 17:53:03 +05:30
|
|
|
def instanceOf(self, ver):
|
|
|
|
|
return "Greenplum Database" in ver
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Default Server Type
|
|
|
|
|
GPDB('gpdb', gettext("Greenplum Database"), 3)
|