SchizoDuckie / CreateReadUpdateDelete.js

CreateReadUpdateDelete.js aims to bring you a tiny footprint (18kb compressed), platform independent ORM/ActiveRecord implementation for Javascript that works flawlessly on SQLite / WebSQL databases, or any flavor of remote database you can think of via serverside JSON API. Written in Plain Old JavaScript without any framework dependencies, you can use this with Mootools, Jquery, Zepto, Ember, or whatever your drug of choice is.
http://schizoduckie.github.io/CreateReadUpdateDelete.js/
MIT License
38 stars 5 forks source link

CRUD.FindCount is not a function #7

Closed MarioVanDenEijnde closed 7 years ago

MarioVanDenEijnde commented 8 years ago

Hello SchizoDuckie,

Question: Should this work? It works in your demo: http://jsfiddle.net/SchizoDuckie/p7kta1mv/ But I am not sure this is old source. But I get CRUD.FindCount is not a function (tried in and out quotes)

CRUD.FindCount('Food').then(function(count) {
    total.innerHTML = count;  
});

Kind regards, Mario

SchizoDuckie commented 7 years ago

Correct, FindCount has been removed in favour of a custom CRUD.ExecuteQuery