unsafe

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content []Item

Content is used as a container for Unsafe Items

type Item

type Item map[string]interface{}

Item is used as a container for sql rows with unknown values

type Unsafe

type Unsafe struct {
	Cx sql.ConnX
}

Unsafe sets up a sql connection interface for later unsafe queries

func (*Unsafe) UnsafeGet

func (u *Unsafe) UnsafeGet(query string, params ...interface{}) (Item, error)

UnsafeGet is used when expecting a single instance of output values where types are unknown

func (*Unsafe) UnsafeSelect

func (u *Unsafe) UnsafeSelect(query string, params ...interface{}) (Content, error)

UnsafeSelect is used when expecting multiple instances of output values where types are unknown

Jump to

Keyboard shortcuts

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