From a13a2f195ecaa8a4f2d16dd2848c4b0fcd7f6279 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Sat, 22 Apr 2023 12:14:43 +0800 Subject: [PATCH] feat(nc-gui): add isSqlite --- packages/nc-gui/store/project.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/nc-gui/store/project.ts b/packages/nc-gui/store/project.ts index 31a239cab2..f3e0dba3d8 100644 --- a/packages/nc-gui/store/project.ts +++ b/packages/nc-gui/store/project.ts @@ -82,6 +82,10 @@ export const useProject = defineStore('projectStore', () => { return ['mysql', ClientType.MYSQL].includes(getBaseType(baseId)) } + function isSqlite(baseId?: string) { + return getBaseType(baseId) === ClientType.SQLITE + } + function isMssql(baseId?: string) { return getBaseType(baseId) === 'mssql' } @@ -209,6 +213,7 @@ export const useProject = defineStore('projectStore', () => { isMysql, isMssql, isPg, + isSqlite, sqlUis, isSharedBase, loadProjectMetaInfo,