MCPcopy Create free account
hub / github.com/dataform-co/dataform / getConnectionForIcebergTable

Function getConnectionForIcebergTable

core/utils.ts:358–369  ·  view source on GitHub ↗
(
  configConnection?: string,
  defaultConnection?: string,
)

Source from the content-addressed store, hash-verified

356 * @returns Connection used when creating an Iceberg table.
357 */
358export function getConnectionForIcebergTable(
359 configConnection?: string,
360 defaultConnection?: string,
361): string {
362 if (configConnection) {
363 return configConnection;
364 } else if (defaultConnection) {
365 return defaultConnection;
366 } else {
367 return "DEFAULT";
368 }
369}
370
371/**
372 * Constructs the storage URI for an Iceberg table from storageUri, bucketName,

Callers 3

utils_test.tsFile · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected