sql-load
AMD plugin for loading SQL
Warning - This module is still a work in progress, use at your own risk
Usage
var selectAll = './selectAll';// selectAll is a string to use in a query
;
You can configure the loader through AMD config or the config
method.
var sqlLoad = ; sqlLoad; var selectAll = ; // loaded __dirname + '/sql/selectAll.txt';
basePath
defaults to the current module.
ext
defaults to '.sql'
.
If you need to load a sql file async (this is used in the AMD plugin).
var sqlLoad = ; sqlLoad;