MCPcopy Create free account
hub / github.com/porsager/postgres / parseTransform

Function parseTransform

cf/src/index.js:520–536  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

518}
519
520function parseTransform(x) {
521 return {
522 undefined: x.undefined,
523 column: {
524 from: typeof x.column === 'function' ? x.column : x.column && x.column.from,
525 to: x.column && x.column.to
526 },
527 value: {
528 from: typeof x.value === 'function' ? x.value : x.value && x.value.from,
529 to: x.value && x.value.to
530 },
531 row: {
532 from: typeof x.row === 'function' ? x.row : x.row && x.row.from,
533 to: x.row && x.row.to
534 }
535 }
536}
537
538function parseUrl(url) {
539 if (!url || typeof url !== 'string')

Callers 1

parseOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected