Exemplo n.º 1
0
    def __init__(self):
        self.excludeDbsList = PGSQL_SYSTEM_DBS
        self.sysUdfs = {
            # UDF name:     UDF parameters' input data-type and return data-type
            "sys_exec": {
                "input": ["text"],
                "return": "int4"
            },
            "sys_eval": {
                "input": ["text"],
                "return": "text"
            },
            "sys_bineval": {
                "input": ["text"],
                "return": "int4"
            },
            "sys_fileread": {
                "input": ["text"],
                "return": "text"
            }
        }

        Syntax.__init__(self)
        Fingerprint.__init__(self)
        Enumeration.__init__(self)
        Filesystem.__init__(self)
        Miscellaneous.__init__(self)
        Takeover.__init__(self)
Exemplo n.º 2
0
    def __init__(self):
        self.excludeDbsList = PGSQL_SYSTEM_DBS
        self.sysUdfs = {
                         # UDF name:     UDF parameters' input data-type and return data-type
                         "sys_exec":     { "input":  [ "text" ], "return": "int4" },
                         "sys_eval":     { "input":  [ "text" ], "return": "text" },
                         "sys_bineval":  { "input":  [ "text" ], "return": "int4" },
                         "sys_fileread": { "input":  [ "text" ], "return": "text" }
                       }

        Syntax.__init__(self)
        Fingerprint.__init__(self)
        Enumeration.__init__(self)
        Filesystem.__init__(self)
        Miscellaneous.__init__(self)
        Takeover.__init__(self)