(file)
| 20 | /////////////////////////////////////////////// |
| 21 | // Helper for linking to external query files; |
| 22 | function 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 | } |