postgres

package
v1.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(params database.DBConnectionParams, config DBConnectionConfig) (*gorm.DB, error)

func GetTableName

func GetTableName(table string) string

func GetTableNameWithoutSchema

func GetTableNameWithoutSchema(fullName string) string

Types

type DBConnectionConfig

type DBConnectionConfig struct {
	Gorm *gorm.Config
}

type GormConnection

type GormConnection struct {
	// contains filtered or unexported fields
}

func NewPostgresConnection

func NewPostgresConnection(params *database.DBConnectionParams, config DBConnectionConfig) (*GormConnection, error)

func (*GormConnection) GetDB

func (c *GormConnection) GetDB() *gorm.DB

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL