pg_connection

package module
v0.0.0-...-077f9e0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDbIfNotExists

func CreateDbIfNotExists(connString string, defaultDBs ...string) error

CreateDbIfNotExists create postgres database of the given name if one doesn't already exists. No actions are performed if the database already exists.

func MakePostgresConnString

func MakePostgresConnString(user, pass, host, dbName, sslMode string, defaultsDBs ...string) string

MakePostgresConnString build Postgres connection string from individual credential parts

func NewPostgresConnectionManager

func NewPostgresConnectionManager(connString string, config *gorm.Config) connection.Manager

NewPostgresConnectionManager create a new instance of the Postgres implementation of the Manager interface.

Types

This section is empty.

Jump to

Keyboard shortcuts

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