query

package
v0.0.0-...-68308e7 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Operator_String = []string{
	"Invalid Operator",
	"Equals",
	"Not Equals",
	"Greater Than",
	"Less Than",
	"Greater Than Equals",
	"Less Than Equals",
}
View Source
var Query_String = []string{
	"Invalid Query",
	"Select",
	"Insert",
}

Functions

This section is empty.

Types

type Condition_t

type Condition_t struct {
	Operand1   string
	IsOp1Field bool

	Operator Operator_t

	Operand2   string
	IsOp2Field bool
}

type Operator_t

type Operator_t uint8

Defines the type of Operator i.e Equals(=), Not Equals(!=), etc.

const (
	INVALID_OPERATOR_TYPE Operator_t = iota
	EQUALS
	NOT_EQUALS
	GREATER_THAN
	LESS_THAN
	GREATER_THAN_EQUALS
	LESS_THAN_EQUALS
)

type Query

type Query struct {
	Type       Query_t
	Table      string
	Conditions []Condition_t

	Insertions [][]string
	Fields     []string
}

Defines the SQL Query itself i.e. Type of Query, Table Name, Conditions, Insertion Values, Fields, etc.

type Query_t

type Query_t uint8

Defines the type of SQL Query i.e. Select, Insert, etc.

const (
	INVALID_QUERY_TYPE Query_t = iota
	SELECT
	INSERT
)

Jump to

Keyboard shortcuts

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