mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-10 23:45:58 -06:00
31 lines
865 B
Python
31 lines
865 B
Python
##########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
##########################################################################
|
|
|
|
from flask_babelex import gettext
|
|
from pgadmin.browser.server_groups.servers.types import ServerType
|
|
|
|
|
|
class GPDB(ServerType):
|
|
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)."
|
|
)
|
|
|
|
@property
|
|
def icon(self):
|
|
return "gpdb.png"
|
|
|
|
def instance_of(self, ver):
|
|
return "Greenplum Database" in ver
|
|
|
|
|
|
# Default Server Type
|
|
GPDB('gpdb', gettext("Greenplum Database"), 3)
|