MCPcopy Create free account
hub / github.com/parse-community/parse-server / sql

Function sql

src/Adapters/Storage/Postgres/sql/index.js:22–32  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

20///////////////////////////////////////////////
21// Helper for linking to external query files;
22function sql(file) {
23 var fullPath = path.join(__dirname, file); // generating full path;
24
25 var qf = new QueryFile(fullPath, { minify: true });
26
27 if (qf.error) {
28 throw qf.error;
29 }
30
31 return qf;
32}

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected