Browse Source

feat(nc-gui): add isSqlite

pull/5601/head
Wing-Kam Wong 1 year ago
parent
commit
a13a2f195e
  1. 5
      packages/nc-gui/store/project.ts

5
packages/nc-gui/store/project.ts

@ -82,6 +82,10 @@ export const useProject = defineStore('projectStore', () => {
return ['mysql', ClientType.MYSQL].includes(getBaseType(baseId)) return ['mysql', ClientType.MYSQL].includes(getBaseType(baseId))
} }
function isSqlite(baseId?: string) {
return getBaseType(baseId) === ClientType.SQLITE
}
function isMssql(baseId?: string) { function isMssql(baseId?: string) {
return getBaseType(baseId) === 'mssql' return getBaseType(baseId) === 'mssql'
} }
@ -209,6 +213,7 @@ export const useProject = defineStore('projectStore', () => {
isMysql, isMysql,
isMssql, isMssql,
isPg, isPg,
isSqlite,
sqlUis, sqlUis,
isSharedBase, isSharedBase,
loadProjectMetaInfo, loadProjectMetaInfo,

Loading…
Cancel
Save