2018-11-08 14:19:42 +00:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package satellite
|
|
|
|
|
|
|
|
// DB contains access to different satellite databases
|
|
|
|
type DB interface {
|
2018-11-20 14:50:47 +00:00
|
|
|
// Users is a getter for Users repository
|
2018-11-08 14:19:42 +00:00
|
|
|
Users() Users
|
2018-11-20 14:50:47 +00:00
|
|
|
// Companies is a getter for Companies repository
|
2018-11-09 12:05:24 +00:00
|
|
|
Companies() Companies
|
2018-11-20 14:50:47 +00:00
|
|
|
// Projects is a getter for Projects repository
|
2018-11-13 08:27:42 +00:00
|
|
|
Projects() Projects
|
2018-11-20 14:50:47 +00:00
|
|
|
// ProjectMembers is a getter for ProjectMembers repository
|
|
|
|
ProjectMembers() ProjectMembers
|
2018-11-08 14:19:42 +00:00
|
|
|
|
|
|
|
// CreateTables is a method for creating all tables for satellitedb
|
|
|
|
CreateTables() error
|
|
|
|
// Close is used to close db connection
|
|
|
|
Close() error
|
|
|
|
}
|