diff options
author | Ben Burwell <ben@benburwell.com> | 2015-08-02 17:31:36 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2015-08-02 17:31:36 -0400 |
commit | 3d0f989cee9d7c426c759588539dd06c14fa70ea (patch) | |
tree | 798fb7c7f10282be06f85814e20ba062a9d6f635 /src/utils.js | |
parent | 2cde3ec173c57d24e6fb8a31700a7db4eb31564d (diff) |
let's get v1 going here
Diffstat (limited to 'src/utils.js')
-rw-r--r-- | src/utils.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/utils.js b/src/utils.js index f2d1dc1..4dc3458 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1,7 +1,4 @@ -var fs = require('fs'); - module.exports = { - // Take some solfege input and normalize it normalize: function(str) { var tokens = str.toLowerCase().split(/\s+/); @@ -80,27 +77,5 @@ module.exports = { } return ret.trim(); - }, - - // Initialize the SQL database - initializeDatabase: function(db, done) { - - // Fetch the SQL we need to run - fs.readFile('../db/schema.sql', function(err, sql) { - if (err) { - return console.error('Error reading SQL from file', err); - } - - // Execute the query - db.query(sql, function(err, result) { - - if (err) { - console.error('Error executing SQL query', err); - } - - // Run the callback - done(); - }); - }); } }; |