package
0.2.3
Repository: https://github.com/daihasso/machgo.git
Documentation: pkg.go.dev

# Functions

BaseSelectable takes a base an provides a Selectable from it.
ColumnAliasForString splits a string in the format of alias_column into a ColumnAlias type.
InterfaceToQueryable takes a generic interface and creates a ConstantQueryable from it.
LiteralSelectable takes the exact string and creates a select expression from it.
NewAliasedTables creates a new AliasedTables mapping containing the provided objects.
NewDefaultCondition creates a new default condition combining the values provided via the combiner provided.
NewDefaultEvaluator returns the standard evaluator.
NewMultiAndCondition takes the provided values and combines them in the fashion of `a=5 AND c=1`.
NewMultiListCondition takes the provided values and combines them in the fashion of `a=5, c=1`.
NewMultiOrCondition takes the provided values and combines them in the fashion of `a=5 OR c=1`.
NewQueryResult creates a new QueryResult.
NewQueryResults returns a new QueryResults from a finished query with pending rows.
NewSelectExpression takes an expression in the format `a.b` and turns it into a SelectExpression.
ObjectColumn is a convinience function that atomatically grabs the provided objects column and prefixes the provided column with it.
SnakeToUpperCamel converts a string in snake_case to a string in UpperCamelCase.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

AliasedTables is a representation that makes dealing with table, object, and alias mappings easier.
AscendingQueryable takes a statement and assigns an ascending direction to it.
ColumnAlias is a table's alias paired with a column in a standardized format.
No description provided by the author
ColumnQueryable is a raw column with no table attached.
ConstantQueryable is a value or series of values such as numbers or strings that will be used in a statement.
DefaultCondition represents a standard condition that just combines on lefthand set of values with a righthand set of values.
DescendingQueryable takes a statement and assigns an descending direction to it.
LimitOption is sets a limit to the query.
LiteralQueryable uses exactly the string provided.
MultiCondition combines multiple values in a serial fashion using the provided Combiner.
NotCondition creates a sql NOT on the provided statment.
OffsetOption sets an offset to the query.
OrderByOption defines an option that orders the query by.
QueryResult is a set of all the results from a query in objects.
QueryResults represents a set of results which generate QueryResult per row and have convinience functions for batch reading.
SelectCount uses the SQL COUNT function with the provided Expression.
SelectExpression represents a column/table pairing for use in a select statement.
TableColumnQueryable is a table/column pairing that will be used in a query.

# Interfaces

BaseSlicePointer is a pointer to a slice of pointers to bases like: `*[]*MyObject` It is represented by an interface so that it can take in a slice of any custom object you've implemented in your project.
ConstantValue is simply sugar on an interface.
Queryable is an interface that represents something that can be turned into a string and a special context-aware string via QueryValue.
QueryOption defines a special type of queryable to be used for option on a query such as limit.
SelectFunction is a special type of Queryable that invokes a SQL function.

# Type aliases

AliasObjValMap maps an alias to a value of an object corresponding to that alias.
Combiner is some symbol that combines multiple items in SQL.
ConditionEvaluator is a function that takes two queryables and runs a transformation function (queryableValuer) on them to return their string representation and any values associated.
FunctionType represents the SQL function type.
OptionType defines query option types.
Selectable is a thing which provides a SelectExpression (and maybe an error).
ValueModifier takes two statements represented by strings and does some mutations on them returning the mutated results.