2018-03-07 05:52:02 -06:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2024-01-01 02:43:48 -06:00
|
|
|
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
2018-03-07 05:52:02 -06:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2021-09-27 06:14:26 -05:00
|
|
|
export function nodeHasStatistics(pgBrowser, node, item) {
|
2018-03-07 05:52:02 -06:00
|
|
|
if(typeof(node.hasStatistics) === 'function') {
|
2021-09-27 06:14:26 -05:00
|
|
|
const treeHierarchy = pgBrowser.tree.getTreeNodeHierarchy(item);
|
2018-03-07 05:52:02 -06:00
|
|
|
return node.hasStatistics(treeHierarchy);
|
|
|
|
}
|
|
|
|
return node.hasStatistics;
|
|
|
|
}
|