Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RepositoryConfigurationName = map[RepoConfig]string{ POSTGRES: "POSTGRES", }
Functions ¶
func NewPostgresRepo ¶
func NewPostgresRepo(db *gorm.DB, errorTransformer errors.ErrorTransformer, scope promutils.Scope) interfaces.DataCatalogRepo
Types ¶
type DBHandle ¶
type DBHandle struct {
// contains filtered or unexported fields
}
func NewDBHandle ¶
type PostgresRepo ¶
type PostgresRepo struct {
// contains filtered or unexported fields
}
func (*PostgresRepo) ArtifactRepo ¶
func (dc *PostgresRepo) ArtifactRepo() interfaces.ArtifactRepo
func (*PostgresRepo) DatasetRepo ¶
func (dc *PostgresRepo) DatasetRepo() interfaces.DatasetRepo
func (*PostgresRepo) ReservationRepo ¶
func (dc *PostgresRepo) ReservationRepo() interfaces.ReservationRepo
func (*PostgresRepo) TagRepo ¶
func (dc *PostgresRepo) TagRepo() interfaces.TagRepo
type RepositoryInterface ¶
type RepositoryInterface interface { DatasetRepo() interfaces.DatasetRepo ArtifactRepo() interfaces.ArtifactRepo TagRepo() interfaces.TagRepo ReservationRepo() interfaces.ReservationRepo }
The RepositoryInterface indicates the methods that each Repository must support. A Repository indicates a Database which is collection of Tables/models. The goal is allow databases to be Plugged in easily.
func GetRepository ¶
func GetRepository(ctx context.Context, repoType RepoConfig, dbConfig database.DbConfig, scope promutils.Scope) RepositoryInterface
Directories ¶
Path | Synopsis |
---|---|
Generic errors used in the repos layer
|
Generic errors used in the repos layer |
Shared utils for postgresql tests.
|
Shared utils for postgresql tests. |
Click to show internal directories.
Click to hide internal directories.