sqlwrap

package module
v0.0.0-...-a6e2948 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func In

func In(query string, params Params) (string, error)

Types

type Client

type Client struct {
	*sql.DB
}

func Open

func Open(driver string, connection string) (*Client, error)

func (*Client) Get

func (c *Client) Get(
	ctx context.Context,
	destination interface{},
	query string,
	params Params,
) error

func (*Client) Select

func (c *Client) Select(
	ctx context.Context,
	destination *[]string,
	query string,
	params map[string]interface{},
) error

type Params

type Params map[string]any

type Values

type Values []any

Jump to

Keyboard shortcuts

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