1
0
forked from MTSR/mapserver
mapserver/server/db/sqlite/sql.go
2019-02-13 15:44:05 +01:00

18 lines
308 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 where b.mtime >= ? and b.mtime <= ?
`
const getBlockQuery = `
select pos,data,mtime from blocks b where b.pos = ?
`