18 lines
272 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 = ?
`