package
1.2.120
Repository: https://github.com/searking/golang.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CompliantName returns a compliant id name that can be used for a bind or as var.
ExpandAsColumns expand columns with alias AS query := ExpandAsColumns("table.foo", "bar") // []string{"table.foo AS table_foo", "bar AS bar"}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
JoinColumns concatenates the elements of cols to column1, column2, ..
JoinColumnsWithAs concatenates the elements of cols to column1, column2, ..
JoinTableColumns concatenates the elements of cols to column1, column2, ..
JoinTableColumnsValues concatenates the elements of values to table.value1=:value1, table.value2=:value2 ..
JoinTableColumnsWithAs concatenates the elements of cols to column1, column2, ..
JoinTableValues concatenates the elements of values to :value1, :value2, ..
Pagination returns the "LIMIT %d, OFFSET %d" query := Pagination(0, 0) // "LIMIT 0, OFFSET 0".
Placeholders behaves like strings.Join([]string{"?",...,"?"}, ",").
No description provided by the author
TableColumns returns the []string{table.value1, table.value2 ...} query := Columns("table", "foo", "bar") // []string{"table.foo", "table.bar"}.
TableColumnsValues returns the []string{table.value1=:value1, table.value2=:value2 ...} query := ColumnsValues("table", "foo", "bar") // []string{"table.foo=?", "table.bar=?"}.
TableValues returns the []string{:value1, :value2 ...} query := TableValues("foo", "bar") // []string{"?", "?"}.
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

NullDuration represents an interface that may be null.
NullJson represents an interface that may be null.