package
0.0.0-20211113074651-c6ea6ab4ee08
Repository: https://github.com/tsaikd/kdgolib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

IsContainErrorDuplicateViolateUniqueConstraint check err contain sql error "duplicate key value violates unique constraint".
IsContainErrorNoRowsInResultSet check err contain sql error "no rows in result set".
IsContainErrorTsquerySyntax check error contain sql error "syntax error in tsquery".
IsErrorDuplicateViolateUniqueConstraint check err is sql error "duplicate key value violates unique constraint".
IsErrorNoRowsInResultSet check err is sql error "no rows in result set" or "no row affected".
IsErrorTsquerySyntax check error is sql error "syntax error in tsquery".
NamedExecContext prepare named SQL statement and call Exec function with context.
NamedExecStrictContext like NamedExecContext, but result rows affected should greater than zero.
NamedGetContext prepare named SQL statement and call Get function with context, return error if get nothing.
NamedSelectContext prepare named SQL statement and call Select function with context.
NamedSelectInContext prepare named/in SQL statement and call Select function with context.
NamedSelectInStrictContext prepare named/in SQL statement and call Select function with context, return error if select nothing.
NamedSelectStrictContext prepare named SQL statement and call Select function with context, return error if select nothing.
NewSQLStringSlice create from *[]string.
ParseTsQuery remove invalid tsquery syntax, tx should not be transaction because error will cause transaction stop.
SQLScanEnumString set obj to value's enum in stringMapEnum representation.
SQLScanJSON set obj to value's JSON representation.
SQLScanStrictJSON set obj to value's JSON representation, all field should exist in obj.
SQLScanString set obj to value's string representation.
SQLScanStringSlice set obj to value's stringslice representation.
SQLValueJSON return obj's JSON representation which implements driver.Value.
SQLValueStringSlice return s postgresql representation which implements driver.Value.

# Variables

# Structs

SQLNullTime represents a time.Time that may be null.

# Type aliases

SQLJsonMap general map type for SQL.
SQLStringSlice is a type of []string and implement SQL driver.
SQLStringSliceJSON is a type of []string and implement SQL driver.
SQLUUID autogenerated raml type.