a2e20c93ae
Initially we duplicated the code to avoid large scale changes to the packages. Now we are past metainfo refactor we can remove the duplication. Change-Id: I9d0b2756cc6e2a2f4d576afa408a15273a7e1cef
22 lines
511 B
Go
22 lines
511 B
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package storagenodedb
|
|
|
|
import "storj.io/private/tagsql"
|
|
|
|
// dbContainerImpl fulfills the migrate.DB interface and the SQLDB interface.
|
|
type dbContainerImpl struct {
|
|
tagsql.DB
|
|
}
|
|
|
|
// Configure sets the underlining SQLDB connection.
|
|
func (db *dbContainerImpl) Configure(newDB tagsql.DB) {
|
|
db.DB = newDB
|
|
}
|
|
|
|
// GetDB returns underlying implementation of dbContainerImpl.
|
|
func (db *dbContainerImpl) GetDB() tagsql.DB {
|
|
return db.DB
|
|
}
|