mapserver/server/db/sqlite/sql.go

18 lines
308 B
Go
Raw Normal View History

2019-02-05 15:13:34 +03:00
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 where b.mtime >= ? and b.mtime <= ?
`
const getBlockQuery = `
select pos,data,mtime from blocks b where b.pos = ?
`