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

Function parseTransform

cjs/src/index.js:519–535  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

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

Callers 1

parseOptionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected