Is it possible to run a migration using a variable name for the file in the db directory
Created by: hypexr
The files in my db/queries directory are not known at run time. I have a variable holds the name.
Say the filename is: db/myquery.sql
If I knew the filename I could write
db.myquery(function(error) {
});
Is there a way for me to do something like:
db.execute(nameOfFile, function(error) {
});
If not should I read the file in as a string and use "run"?