connect

package
v0.0.0-...-6802e93 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(p Connection) (db.Session, error)

func Test

func Test(p Connection) (err error)

Types

type Connection

type Connection struct {
	Type     string
	User     string
	Password string
	Database string
	Host     string
	Port     int
	Socket   string
	Options  map[string]string
}

func (Connection) Hostport

func (c Connection) Hostport() string

type DB

type DB struct {
	Type string
	URL  interface{}
}

func New

func New(p Connection) (d DB, err error)

func (*DB) Open

func (d *DB) Open() (sess db.Session, err error)

Jump to

Keyboard shortcuts

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