MCPcopy Create free account
hub / github.com/bytebase/bytebase / instanceV1HasAlterSchema

Function instanceV1HasAlterSchema

frontend/src/utils/v1/instance.ts:97–103  ·  view source on GitHub ↗
(
  instanceOrEngine: Instance | InstanceResource | Engine
)

Source from the content-addressed store, hash-verified

95};
96
97export const instanceV1HasAlterSchema = (
98 instanceOrEngine: Instance | InstanceResource | Engine
99): boolean => {
100 const engine = engineOfInstanceV1(instanceOrEngine);
101 if (engine === Engine.REDIS) return false;
102 return true;
103};
104
105export const instanceV1HasReadonlyMode = (
106 _instanceOrEngine: Instance | InstanceResource | Engine

Callers 3

useSchemaPaneContextMenuFunction · 0.90
useConnectionMenuFunction · 0.90
useProjectDatabaseDetailFunction · 0.90

Calls 1

engineOfInstanceV1Function · 0.85

Tested by

no test coverage detected