2019-01-08 00:27:24 +03:00
|
|
|
package db
|
|
|
|
|
|
|
|
type Sqlite3Accessor struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (db *Sqlite3Accessor) IsMigrated() (bool, error) {
|
|
|
|
return false, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (db *Sqlite3Accessor) Migrate() error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-01-08 10:46:12 +03:00
|
|
|
func (db *Sqlite3Accessor) FindLatestBlocks(mintime int64, limit int) ([]Block, error) {
|
2019-01-08 00:27:24 +03:00
|
|
|
return make([]Block, 0)
|
|
|
|
}
|
|
|
|
|
2019-01-08 10:46:12 +03:00
|
|
|
func (db *Sqlite3Accessor) FindBlocks(posx int, posz int, posystart int, posyend int) ([]Block, error) {
|
2019-01-08 00:27:24 +03:00
|
|
|
return make([]Block, 0)
|
|
|
|
}
|
|
|
|
|
2019-01-08 10:46:12 +03:00
|
|
|
func (db *Sqlite3Accessor) CountBlocks(x1, x2, y1, y2, z1, z2 int) (int, error) {
|
|
|
|
return 0
|
2019-01-08 00:27:24 +03:00
|
|
|
}
|
|
|
|
|
2019-01-08 10:46:12 +03:00
|
|
|
func NewSqliteAccessor(filename string) (*Sqlite3Accessor, error) {
|
|
|
|
return nil, nil
|
2019-01-08 00:27:24 +03:00
|
|
|
}
|