Documentation ¶
Overview ¶
Package dmltype provides additional types for database values.
Index ¶
Constants ¶
const CSVComma = ","
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSN ¶
type CSN[K numbers] []K
CSN are Comma Separated Numbers, it represents an unmerged slice of numbers. It also implements Text Marshalers for usage in dml.ColumnMap.Text. Strings will be merged and split by comma, hence CSN.
func (CSN[K]) MarshalText ¶
func (*CSN[K]) Scan ¶
Scan satisfies the sql.Scanner interface for CSN. If a string starts with a supported split-character, this function will take that character to split the string.
func (*CSN[K]) UnmarshalText ¶
type CSV ¶
type CSV []string
CSV represents an unmerged slice of strings. You can use package slices.String for further modifications of this slice type. It also implements Text Marshalers for usage in dml.ColumnMap.Text. Strings will be merged and split by comma, hence CSV.
func (CSV) MarshalText ¶
func (*CSV) Scan ¶
Scan satisfies the sql.Scanner interface for CSV. If a string starts with a supported split-character, this function will take that character to split the string.