public function getResourceNames($type, $schema = '')
    {
        switch ($type) {
            case DbResourceTypes::TYPE_SCHEMA:
                return $this->getSchemas();
            case DbResourceTypes::TYPE_TABLE:
                return $this->getTableNames($schema);
            case DbResourceTypes::TYPE_VIEW:
                return $this->getViewNames($schema);
            case DbResourceTypes::TYPE_TABLE_CONSTRAINT:
                return $this->getTableConstraints($schema);
            case DbResourceTypes::TYPE_PROCEDURE:
                return $this->getProcedureNames($schema);
            case DbResourceTypes::TYPE_FUNCTION:
                return $this->getFunctionNames($schema);
            default:
                return [];
        }
    }