db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(dbuser, dbpass, dbhost, dbname, socket string, port int) (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) GenStruct

func (c *Client) GenStruct(q *query.Query) (string, error)

func (*Client) TableDefinitions

func (c *Client) TableDefinitions(table string, cols []string) ([]Columns, error)

type Columns

type Columns map[string]string

func NewColumns

func NewColumns(col string) Columns

func (Columns) Column

func (c Columns) Column() string

func (Columns) StructTag

func (c Columns) StructTag() string

func (Columns) Type

func (c Columns) Type() string

Jump to

Keyboard shortcuts

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