package
1.0.0
Repository: https://github.com/volatiletech/sqlboiler.git
Documentation: pkg.go.dev

# Functions

CamelCase takes a variable name in the format of "var_name" and converts it into a go styled variable name of "varName".
ContainsAny returns true if any of the passed in strings are found in the passed in string slice.
GenerateIgnoreTags converts a slice of tag strings into ignore tags that can be passed onto the end of a struct, for example: tags: ["xml", "db"] convert to: xml:"-" db:"-".
GenerateTags converts a slice of tag strings into tags that can be passed onto the end of a struct, for example: tags: ["xml", "db"] convert to: xml:"column_name" db:"column_name".
GetBuffer retrieves a buffer from the buffer pool.
Identifier is a base conversion from Base 10 integers to Base 26 integers that are represented by an alphabet from a-z See tests for example outputs.
IdentQuote attempts to quote simple identifiers in SQL tatements.
IdentQuoteSlice applies IdentQuote to a slice.
InsertColumnSet generates the set of columns to insert and return for an insert statement the return columns are used to get values that are assigned within the database during the insert to keep the struct in sync with what's in the db.
JoinSlices merges two string slices of equal length.
MakeStringMap converts a map[string]string into the format: "key": "value", "key": "value".
Placeholders generates the SQL statement placeholders for in queries.
Plural converts singular words to plural words (eg: person to people).
PrefixStringSlice with the given str.
PutBuffer back into the buffer pool.
SetComplement subtracts the elements in b from a.
SetInclude checks to see if the string is found in the string slice.
SetMerge will return a merged slice without duplicates.
SetParamNames takes a slice of columns and returns a comma separated list of parameter names for a template statement SET clause.
Singular converts plural words to singular words (eg: people to person).
SortByKeys returns a new ordered slice based on the keys ordering.
StringMap maps a function over a slice of strings.
StringSliceMatch returns true if the length of both slices is the same, and the elements of both slices are the same.
TitleCase changes a snake-case variable name into a go styled object variable name of "ColumnName".
TitleCaseIdentifier splits on dots and then titlecases each fragment.
UpdateColumnSet generates the set of columns to update for an update statement.
WhereClause returns the where clause using start as the $ flag index For example, if start was 2 output would be: "colthing=$2 AND colstuff=$3".