package
0.0.9
Repository: https://github.com/kovacou/go-database.git
Documentation: pkg.go.dev

# Functions

ASC returns ASC if v is true else DESC.
DESC returns DESC if v is true else ASC.
MakeHaving create a new Having with complex rules.
MakeOn create a new On with complex rules.
MakeWhere create a new Where with complex rules.
NewColumns create a new Columns.
NewDelete create a new delete.
NewGroupBy create a new GroupBy.
NewHaving create a new Having.
NewInsert create a new insert.
NewJoin create a new Join.
NewLeftJoin create a new left Join.
NewOn create a new On.
NewOrderBy create a new OrderBy.
NewQuery create a new Query based on string input.
NewSelect create a new select.
NewUpdate create a new update.
NewWhere create a new Where.
ParseColumns create a new Columns based on a string(s) input.
ParseGroupBy create a new GroupBy based on a string(s) input.
ParseHaving create a new Having based on string input.
ParseJoin create a new Join.
ParseLeftJoin create a new left Join.
ParseOn create a new Where based on string input.
ParseOrderBy create a new OrderBy based on a string(s) input.
ParseQuery create a new Query based on string input.
ParseWhere create a new Where based on string input.

# Structs

Delete is the representation of an Delete statement.
Insert is the representation of an Insert statement.
Join is the representation of the Join.
Query is the representation of an Query statement.
Select is the representation of the Select statement.
Update is the representation of an Update statement.

# Interfaces

Columns is list of columns.
GroupBy is the representation of the GROUP BY clause.
Having is the representation of the Having clause.
On is the representation of the On clause.
OrderBy clause for the SELECT query.
Slicer abstract a slice (until generics are supported).
Where clause for the SQL query.

# Type aliases

Binds is used to bind column to another one.
H is the representation of an insert or update values.
Joins is a slice of Join.
Keys is a slice of string representing a list of key.
RawKeys is used to map keys to expression (On Duplicate Key Update case).