db

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig() *Config

type Connector

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

func NewConnector

func NewConnector() *Connector

func (*Connector) Close

func (c *Connector) Close()

func (*Connector) Connect

func (c *Connector) Connect() error

func (*Connector) GetConnection

func (c *Connector) GetConnection() *sqlx.DB

func (*Connector) GetDriver

func (c *Connector) GetDriver() string

func (*Connector) SetConnection

func (c *Connector) SetConnection(db *sql.DB, driver string)

func (*Connector) SetConnectionX

func (c *Connector) SetConnectionX(db *sqlx.DB)

Jump to

Keyboard shortcuts

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