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

Function sql

cjs/src/index.js:110–117  ·  view source on GitHub ↗
(strings, ...args)

Source from the content-addressed store, hash-verified

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

Callers 9

listenFunction · 0.70
unlistenFunction · 0.70
notifyFunction · 0.70
scopeFunction · 0.70
largeObjectFunction · 0.70
index.jsFile · 0.50
watFunction · 0.50
insertFunction · 0.50
selectFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected