/
Ao
/
MaxReport
Обзор
Документация
Войти
/
Ao
/
MaxReport
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
pgsql/pgAdmin 4/web/pgadmin/tools/schema_diff/model.py
50 строк
1 KB
AoAnima
first_commit
13 июл 2026, 17:47
13 июл 2026, 17:47
f1a670a
Код
Авторство
О чём код?
########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2026, The pgAdmin Development Team # This software is released under the PostgreSQL Licence # ########################################################################## class SchemaDiffModel: """ SchemaDiffModel """ def __init__(self, **kwargs): """ This method is used to initialize the class and create a proper object name which will be used to fetch the data using namespace name and object name. Args: **kwargs : N number of parameters """ self._comparison_result = dict() def clear_data(self): """ This function clear the model data. """ self._comparison_result.clear() def set_result(self, node_name, compare_result): """ This method set the result of the Comparison based on nodes. """ self._comparison_result[node_name] = compare_result def get_result(self, node_name=None): """ This function will return the result for the node if specified else return the complete result. :param node_name: Name of the node ex: Database, Schema, etc.. :return: """ if node_name is not None: return self._comparison_result[node_name] return self._comparison_result