我使用Taffy DB在我的应用程序中存储数据。
我已经将数据插入到Taffy DB中,
var teamList = TAFFY();
teamList.insert(data);现在我想检查数据是否已插入到DB中。
敬请指教
发布于 2014-01-23 01:46:52
要查看数据,您需要使用Taffy Query
尝试:
console.log(teamList().get());Taffy查询返回一个包含数据的数组。
db().get(); // returns array with all stored data可以像这样在查询中使用where:
db({column:value}).get(); - is like select * from table where column = value更多信息:http://www.taffydb.com/writingqueries
发布于 2014-02-04 04:12:58
尝试:
teamList.last();
返回最后添加的记录。
https://stackoverflow.com/questions/20882210
复制相似问题