Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresDbContext ¶
type PostgresDbContext struct { DbConfig *infrastructure.DbConfig // contains filtered or unexported fields }
func NewDbContext ¶
func NewDbContext(dbconfig *infrastructure.DbConfig) PostgresDbContext
func (*PostgresDbContext) DSN ¶
func (dc *PostgresDbContext) DSN() string
func (*PostgresDbContext) GetDb ¶
func (dc *PostgresDbContext) GetDb() *gorm.DB
Click to show internal directories.
Click to hide internal directories.