Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstance ¶
func GetInstance() *pg
GetInstance returns the singleton instance. Will be nil if not yet initialized.
func Initialize ¶
func Initialize(ctx context.Context, e engine.Engine, l logger.Logger, migConf migration.Config, dataMigConf datamigration.Config, projectLimit int) error
Initialize instantiates the singleton postgres storage backend. Will only initialize once. Will simply return nil if already initialized.
func New ¶
func New(ctx context.Context, migConf migration.Config, dataMigConf datamigration.Config, l logger.Logger) (*sql.DB, error)
New returns a new sql.DB connector with the automatic default migrations applied.
func ProcessError ¶
ProcessError is used to translate DB-related errors into the error types defined for our storage implementations.
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.