gurdurr

package module
v0.0.0-...-032482e Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MSSQL    string = "sqlserver"
	Postgres string = "postgres"
	MySQL    string = "mysql"
	SQLITE   string = "sqlite3"
)

Variables

This section is empty.

Functions

func NewQuery

func NewQuery(tableName string) *queryObject

Types

type Clause

type Clause int
const (
	Select Clause = iota
	Where
	OrderBy
	Top
	Limit
	Join
)

type ComparatorType

type ComparatorType int
const (
	GreaterThanOrEqual ComparatorType = iota
	GreaterThan
	Equals
	LessThan
	LessThanOrEqual
	NotEquals
	Like
	Not
)

func (ComparatorType) String

func (ct ComparatorType) String() string

type QueryConnector

type QueryConnector = int
const (
	AND QueryConnector = iota
	OR
)

type QueryExecutor

type QueryExecutor interface {
	Exec(*queryObject) (QueryResult, error)
}

func NewRepository

func NewRepository(conn *sql.DB, driver string) QueryExecutor

type QueryResult

type QueryResult interface {
	Result(any) error
}

Jump to

Keyboard shortcuts

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