2018-04-30 18:42:17 +05:00
|
|
|
package databaseinterface
|
|
|
|
|
|
|
|
import (
|
|
|
|
// other
|
|
|
|
"github.com/jmoiron/sqlx"
|
|
|
|
)
|
|
|
|
|
2018-04-30 22:31:48 +05:00
|
|
|
// Interface represents database interface which is available to all
|
|
|
|
// parts of application and registers with context.Context.
|
2018-04-30 18:42:17 +05:00
|
|
|
type Interface interface {
|
|
|
|
GetDatabaseConnection() *sqlx.DB
|
|
|
|
Initialize()
|
|
|
|
}
|