mapserver/db/sqlite/sql.go
2019-06-13 08:04:32 +02:00

22 lines
332 B
Go

package sqlite
const getBlocksByMtimeQuery = `
select pos,data,mtime
from blocks b
where b.mtime > ?
order by b.mtime asc
limit ?
`
const countBlocksQuery = `
select count(*) from blocks b
`
const getBlockQuery = `
select pos,data,mtime from blocks b where b.pos = ?
`
const getTimestampQuery = `
select strftime('%s', 'now')
`