Skip to content

db.sync() creates sqlite3 files with a ':' at the end of the filename #270

@beaugunderson

Description

@beaugunderson

For example:

var orm = require('orm');

orm.connect('sqlite://storage.sqlite3', function (err, db) {
  if (err) throw err;

  var Alert = db.define('alert', {
    title: String,
    url: String,
    date: Date,
    body: Buffer
  }, {

  });

  db.sync(function (err) {
    if (err) throw err;

    console.log('Synced');
  });
});

This creates the file storage.sqlite3: in the current directory.

I'm using orm@2.0.15 and sqlite3@2.1.7 with node v0.10.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions