Materialized views #123

This commit is contained in:
Jan Prochazka
2021-05-30 10:13:38 +02:00
parent 93edcc4d0a
commit 35fc2e0f5b
6 changed files with 46 additions and 10 deletions

View File

@@ -1,4 +1,5 @@
import { openedTabs } from '../stores';
import _ from 'lodash';
export class LoadingToken {
isCanceled = false;
@@ -26,3 +27,8 @@ export function setSelectedTabFunc(files, tabid) {
export function setSelectedTab(tabid) {
openedTabs.update(tabs => setSelectedTabFunc(tabs, tabid));
}
export function getObjectTypeFieldLabel(objectTypeField) {
if (objectTypeField == 'matviews') return 'Materialized Views';
return _.startCase(objectTypeField);
}