不要怂,就是干,撸起袖子干!

Commit 78cf2b4a by Mick Hansen

Merge pull request #2619 from theikkila/master

Now you can use bare database URIs with sqlite also
2 parents e26c9665 fb51cffc
Showing with 1 additions and 1 deletions
......@@ -27,7 +27,7 @@ ConnectionManager.prototype.getConnection = function(options) {
if (self.connections[options.uuid]) return Promise.resolve(self.connections[options.uuid]);
return new Promise(function (resolve, reject) {
self.connections[options.uuid] = new self.lib.Database(self.sequelize.options.storage || ':memory:', function(err) {
self.connections[options.uuid] = new self.lib.Database(self.sequelize.options.storage || self.sequelize.options.host || ':memory:', function(err) {
if (err) {
if (err.code === 'SQLITE_CANTOPEN') return reject('Failed to find SQL server. Please double check your settings.');
return reject(err);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!