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

Function instanceV1AllowsCrossDatabaseQuery

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

Source from the content-addressed store, hash-verified

207};
208
209export const instanceV1AllowsCrossDatabaseQuery = (
210 instanceOrEngine: Instance | InstanceResource | Engine
211) => {
212 const engine = engineOfInstanceV1(instanceOrEngine);
213 return [
214 Engine.MYSQL,
215 Engine.TIDB,
216 Engine.CLICKHOUSE,
217 Engine.MARIADB,
218 Engine.OCEANBASE,
219 Engine.STARROCKS,
220 Engine.DORIS,
221 ].includes(engine);
222};
223
224export const instanceV1AllowsExplain = (
225 instanceOrEngine: Instance | InstanceResource | Engine

Callers 1

isConnectedSQLEditorTabFunction · 0.90

Calls 1

engineOfInstanceV1Function · 0.85

Tested by

no test coverage detected