Documentation ¶
Index ¶
Constants ¶
View Source
const (
MinPlainCoord = -34351347711
)
Variables ¶
This section is empty.
Functions ¶
func CoordToPlain ¶
func MigrateBlockDB ¶
func MigrateBlockDB(db *sql.DB, dbtype types.DatabaseType) error
func PlainToCoord ¶
Types ¶
type BlockRepository ¶
type BlockRepository interface { types.Backup GetByPos(x, y, z int) (*Block, error) Update(block *Block) error Delete(x, y, z int) error DeleteAll() error Vacuum() error Count() (int64, error) }
func NewBlockRepository ¶
func NewBlockRepository(db *sql.DB, dbtype types.DatabaseType) BlockRepository
Click to show internal directories.
Click to hide internal directories.