storj/pkg/satellite/database.go
Yehor Butko 54cd9491c6
V3-664 Extend User repository. Reimplemented with dbx (#591)
* V3-664 Extend User repository. Reimplemented with dbx

* structure updated

* redundant packages removed, structure simplified

* fixing goimports

* removed constuctor from user struct

* separated types declarations from database file

* test file renamed

* fixes according to review

* fixing goimports

* fixing goimports
2018-11-08 16:19:42 +02:00

16 lines
380 B
Go

// Copyright (C) 2018 Storj Labs, Inc.
// See LICENSE for copying information.
package satellite
// DB contains access to different satellite databases
type DB interface {
// Users is getter for Users repository
Users() Users
// CreateTables is a method for creating all tables for satellitedb
CreateTables() error
// Close is used to close db connection
Close() error
}