viezel/napp.alloy.adapter.restsql — pull request #37 by manumaticx (2014-02-19 14:45:42+00:00)
Title: avoid invalid sql statement when where is empty

I was dynamically creating an object to set the where option. If `opts` is an empty object it throws an "invalid SQL statement" error. This additional check transfers `where: {}` to `where 1=1`
```javascript
collection.fetch({
sql: {
where: opts
},
localOnly: true
});
```