0
我想知道哪些日期范围与IndexedDB中的另一个日期范围重叠。带范围查询的IndexedDB
类似下面的查询:
SELECT * FROM events
WHERE (periodStart >= start AND periodStart < end)
OR (start >= periodStart AND start <= periodEnd)
活动看起来像以下对象:
[{
title: 'foo',
start: 'Tue Oct 29 2013 10:19:52 GMT-0400 (EDT)',
end: 'Tue Oct 29 2013 13:19:52 GMT-0400 (EDT)'
},
{
title: 'bar',
start: 'Tue Oct 30 2013 00:00:00 GMT-0400 (EDT)',
end: 'Tue Oct 31 2013 00:00:00 GMT-0400 (EDT)'
}]
[在IndexedDB中查询?]的可能重复(http://stackoverflow.com/questions/6405650/querying-in-indexeddb) –