sqlx

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlxAdapter

type SqlxAdapter struct {
	*adapter.BaseAdapter
	// contains filtered or unexported fields
}

func NewSqlxAdapter

func NewSqlxAdapter(name string, config *SqlxConfig) *SqlxAdapter

func (*SqlxAdapter) Begin

func (c *SqlxAdapter) Begin() (*sqlx.Tx, error)

func (*SqlxAdapter) Close

func (a *SqlxAdapter) Close() (err error)

func (*SqlxAdapter) Get

func (a *SqlxAdapter) Get() *sqlx.DB

func (*SqlxAdapter) Setup

func (a *SqlxAdapter) Setup() (err error)

type SqlxConfig

type SqlxConfig struct {
	Driver           string `json:"Driver" config:"Driver,required"`
	ConnectionString string `json:"ConnectionString,omitempty" config:"ConnectionString,required"`
}

Jump to

Keyboard shortcuts

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