query

package
v0.0.0-...-270aa44 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 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 ExecQuery

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

func (*ExecQuery) Error

func (q *ExecQuery) Error() string

func (*ExecQuery) Query

func (q *ExecQuery) Query() string

func (*ExecQuery) Run

func (q *ExecQuery) Run()

type FailedQuery

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

func (*FailedQuery) Error

func (q *FailedQuery) Error() string

func (*FailedQuery) Query

func (q *FailedQuery) Query() string

func (*FailedQuery) Run

func (q *FailedQuery) Run()

type Query

type Query interface {
	Query() string // returns query string
	Run()          // actually runs the query
	Error() string
}

func NewQuery

func NewQuery(db *sqlx.DB, query string) Query

figure out if select or other type of query and create it Question for self: Should this return an error, and if so, which kind and where should it be handled?

type SelectQuery

type SelectQuery struct {
	ColNames []string
	ColTypes []string
	Rows     [][]string
	// contains filtered or unexported fields
}

func (*SelectQuery) Error

func (q *SelectQuery) Error() string

func (*SelectQuery) Query

func (q *SelectQuery) Query() string

func (*SelectQuery) Run

func (q *SelectQuery) Run()

Jump to

Keyboard shortcuts

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