psql_connect

package
v0.0.0-...-c600a59 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnUrl

func GetConnUrl(params Params) *url.URL

func GetConnect

func GetConnect(connUrl *url.URL) (*sqlx.DB, error)

Types

type Params

type Params struct {
	User        string // Username
	Passwd      string // Password (requires User)
	Host        string // Network host
	Port        string // Network port
	Socket      string // Socket path
	Database    string // Database name
	SSLMode     string // SSL mode
	SSLRootCert string // SSL root cert path
	SSLCrl      string // SSL crl path
}

Jump to

Keyboard shortcuts

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