client

package
v0.0.0-...-4dfaad5 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 4 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 {
	ClientProvider
	Host     string
	Port     string
	User     string
	Password string
	DBName   string
	SSLMode  string
}

func (*Client) Connect

func (c *Client) Connect() (*sqlx.DB, error)

func (*Client) Get

func (c *Client) Get(dest interface{}, query string) error

func (*Client) Select

func (c *Client) Select(dest interface{}, query string) error

type ClientProvider

type ClientProvider interface {
	Connect() (*sqlx.DB, error)
	Get(dest interface{}, query string) error
	Select(dest interface{}, query string) error
}

Jump to

Keyboard shortcuts

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