pabsqldriver

package
v0.1.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlDriver

type SqlDriver struct {
	DB *sql.DB
}

func NewSqlDriver

func NewSqlDriver(user string, password string, db string) (*SqlDriver, error)

func NewSqlDriverV2 added in v0.1.9

func NewSqlDriverV2(user, password, host, port, db string) (*SqlDriver, error)

func (*SqlDriver) Exec

func (d *SqlDriver) Exec(statement string, args ...any) (sql.Result, error)

func (*SqlDriver) Query

func (d *SqlDriver) Query(queryStatement string, args ...any) (*sql.Rows, error)

func (*SqlDriver) QueryRow

func (d *SqlDriver) QueryRow(queryStatement string, args ...any) *sql.Row

func (*SqlDriver) ValueExists

func (d *SqlDriver) ValueExists(table string, column string, value any) (bool, error)

Jump to

Keyboard shortcuts

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