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

Function instanceV1AllowsExplain

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

Source from the content-addressed store, hash-verified

222};
223
224export const instanceV1AllowsExplain = (
225 instanceOrEngine: Instance | InstanceResource | Engine
226) => {
227 const engine = engineOfInstanceV1(instanceOrEngine);
228 return [
229 Engine.MYSQL,
230 Engine.TIDB,
231 Engine.CLICKHOUSE,
232 Engine.COCKROACHDB,
233 Engine.HIVE,
234 Engine.MSSQL,
235 Engine.ORACLE,
236 Engine.POSTGRES,
237 Engine.REDSHIFT,
238 Engine.SNOWFLAKE,
239 Engine.STARROCKS,
240 Engine.SPANNER,
241 ].includes(engine);
242};
243
244export const instanceV1AllowsReorderColumns = (
245 instanceOrEngine: Instance | InstanceResource | Engine

Callers 2

CompactSQLEditorFunction · 0.90
SQLEditorFunction · 0.90

Calls 1

engineOfInstanceV1Function · 0.85

Tested by

no test coverage detected