client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: Apache-2.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 Client

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

Client is used to store the pool of db connection.

func New

func New(opts command.Options) (*Client, error)

New return an instance of the client.

func (*Client) DB

func (c *Client) DB() *sqlx.DB

DB Return the db attribute.

func (*Client) Driver

func (c *Client) Driver() string

Driver returns the driver of the database.

Jump to

Keyboard shortcuts

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