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

Function sql

cf/src/index.js:111–118  ·  view source on GitHub ↗
(strings, ...args)

Source from the content-addressed store, hash-verified

109 }
110
111 function sql(strings, ...args) {
112 const query = strings && Array.isArray(strings.raw)
113 ? new Query(strings, args, handler, cancel)
114 : typeof strings === 'string' && !args.length
115 ? new Identifier(options.transform.column.to ? options.transform.column.to(strings) : strings)
116 : new Builder(strings, args)
117 return query
118 }
119
120 function unsafe(string, args = [], options = {}) {
121 arguments.length === 2 && !Array.isArray(args) && (options = args, args = [])

Callers 6

listenFunction · 0.70
unlistenFunction · 0.70
notifyFunction · 0.70
scopeFunction · 0.70
largeObjectFunction · 0.70
fetchFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected