mysql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	User     string  `json:"user,omitempty"`
	Password string  `json:"password,omitempty"`
	Method   string  `json:"method,omitempty"`
	Host     string  `json:"host,omitempty"`
	Port     string  `json:"port,omitempty"`
	Schema   string  `json:"schema,omitempty"`
	Query    *string `json:"query,omitempty"`
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Connection) Db

func (c *Connection) Db() *sql.DB

Db is the method that should be generally called, (E.g. variable.Db().prepare("INSERT INTO...")

func (*Connection) Ping

func (c *Connection) Ping()

func (*Connection) SetDb

func (c *Connection) SetDb(db *sql.DB)

SetDb should be avoided generally and is there for overriding purposes only

Jump to

Keyboard shortcuts

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