postgres

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresClient

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

func New

func New(hostname string, username string, port string, password string) *PostgresClient

func (*PostgresClient) Connect

func (c *PostgresClient) Connect(config *gorm.Config)

func (*PostgresClient) DB

func (c *PostgresClient) DB() *gorm.DB

func (*PostgresClient) RegisterFlags

func (c *PostgresClient) RegisterFlags(cmd *cobra.Command)

Jump to

Keyboard shortcuts

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