package
0.0.0-20241025174117-cd787a4bd128
Repository: https://github.com/advanced-go/postgresql.git
Documentation: pkg.go.dev
# Functions
BuildWhere - build the []Attr based on the URL query parameters.
ExpandSelect - given a template, expand the template to build a WHERE clause if configured.
FmtAttr - format a name, value pair for a SQL statement.
FmtValue - format a value to be used in a SQL statment.
NewInsertValues - create a 2-dimensional array of any out of a slice of any.
NextValFn - build a postgresql SQL 'nextval()' function.
SanitizeString - verify that a string does not contain any text associated with a SQL injection.
TrimDoubleSpace - remove extra spaces.
WriteDelete - build a SQL delete statement with a WHERE clause.
WriteInsert - build a SQL insert statement with a VALUES list.
WriteInsertValues - build the values list of a SQL insert statement.
WriteUpdate - build a SQL update statement, including SET and WHERE clauses.
WriteUpdateSet - build a SQL set clause.
WriteWhere - build a SQL WHERE clause utilizing the given []Attr.
WriteWhereAttributes - build a SQL statement only containing the []Attr conditionals.
# Constants
No description provided by the author
No description provided by the author
TimestampFn - timestamp SQL function.
No description provided by the author
# Type aliases
Function - type used to determine formatting of a functions.