Discover Packages
github.com/bitmark-inc/go-utils
types
sql
package
Version:
v0.0.0-...-e54010c
Opens a new window with list of versions in this module.
Published: Sep 29, 2022
License: BSD-2-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
sqlTypes package implements the following:
TagSet - maintain a set of unique tags/labels
type TagSet map[string ]struct{}
TagSet is a set of unique tag entries
NewTagSet creates a fresh set from a list of strings
AddAll make a list of values present
All the values sorted in ascending order
Has check if a value is present
Scan Postgres array into a TagSet, implements sql.Scanner interface
parses a PostgreSQL array value like {abcd,"a,b",1234}
Value returns Postgres Array value, implement driver.Value interface
output is a PostgreSQL array of strings, all quoted: {"abcd","a,b","1234","he said: \"ok\""}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.