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

Function instanceAllowsSchemaScopedQuery

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

Source from the content-addressed store, hash-verified

376};
377
378export const instanceAllowsSchemaScopedQuery = (
379 instanceOrEngine: Instance | InstanceResource | Engine
380) => {
381 const engine = engineOfInstanceV1(instanceOrEngine);
382 return engine !== Engine.MSSQL && hasSchemaProperty(engine);
383};
384
385export const hasTableEngineProperty = (
386 instanceOrEngine: Instance | InstanceResource | Engine

Callers 1

SchemaChooserFunction · 0.90

Calls 2

engineOfInstanceV1Function · 0.85
hasSchemaPropertyFunction · 0.85

Tested by

no test coverage detected