db

package
v0.0.0-...-785f2ad Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CocktailsDB = "cocktails"
	OpenBarDB   = "openbardb"
)

Variables

This section is empty.

Functions

func NewConn

func NewConn(ctx context.Context, params *ConnParams) (*dbr.Connection, error)

NewConn initializes the database connection

Types

type ConnParams

type ConnParams struct {
	Host            string
	User            string
	Pass            string
	DbName          string
	Branch          string
	Port            int
	MultiStatements bool
}

ConnParams contains the parameters needed to connect to the database

func (ConnParams) String

func (cp ConnParams) String() string

String returns a string representation of the connection parameters

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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