Skip to content

query config is required else throws error #130

Closed

Description

@rbucker

The following code snippet generates an error: [TypeError: Cannot call method 'hasOwnProperty' of undefined]

orm.connect({database:'ultimet.db', protocol:'sqlite'}, function (err, db) {
   if (err) {
       console.error(err);
    } else {
        console.log('connected to the DB');
    }
});

If I include this in the connect() options then it works fine.

query:{debug:true}

Activity

  1. dresende commented on Apr 18, 2013

    @dresende
    Owner

    Thank you for posting. Fix coming right out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions