1
0
forked from MTSR/mapserver

22 lines
332 B
Go
Raw Normal View History

2019-02-05 13:13:34 +01:00
package sqlite
const getBlocksByMtimeQuery = `
select pos,data,mtime
from blocks b
where b.mtime > ?
order by b.mtime asc
limit ?
`
const countBlocksQuery = `
2019-02-15 17:53:32 +01:00
select count(*) from blocks b
2019-02-05 13:13:34 +01:00
`
const getBlockQuery = `
select pos,data,mtime from blocks b where b.pos = ?
`
2019-04-03 08:15:32 +02:00
const getTimestampQuery = `
select strftime('%s', 'now')
`