Documentation
¶
Overview ¶
Package slices provides types and functions for working with slices of various data types when interacting with databases. It includes implementations for scanning and valuing slices of floats, integers, strings, and more, allowing for seamless integration with SQL databases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Float ¶
type Float []float64
Float is a slice of float64.
func (*Float) Scan ¶
Scan implements the sql.Scanner interface. It allows to read the float slice from the database value.
func (*Float) UnmarshalText ¶
UnmarshalText will unmarshall text value into the float slice representation of this value.
type Int ¶
type Int []int
Int is a slice of int.
func (*Int) Scan ¶
Scan implements the sql.Scanner interface. It allows to read the int slice from the database value.
func (*Int) UnmarshalText ¶
UnmarshalText will unmarshall text value into the int slice representation of this value.
type Map ¶
Map is a map[string]interface.
func (*Map) Scan ¶
Scan implements the sql.Scanner interface. It allows to read the map from the database value.
func (*Map) UnmarshalJSON ¶
UnmarshalJSON will unmarshall JSON value into the map representation of this value.
func (Map) UnmarshalText ¶
UnmarshalText will unmarshall text value into the map representation of this value.
type String ¶
type String []string
String is a slice of strings.
func (*String) Scan ¶
Scan implements the sql.Scanner interface. It allows to read the string slice from the database value.
func (String) TagValue ¶
TagValue implements the tagValuer interface, to work with https://github.com/gobuffalo/tags.
func (*String) UnmarshalJSON ¶
UnmarshalJSON will unmarshall JSON value into the string slice representation of this value.
func (*String) UnmarshalText ¶
UnmarshalText will unmarshall text value into the string slice representation of this value.
type UUID ¶
UUID is a slice of UUIDs.
func (*UUID) Scan ¶
Scan implements the sql.Scanner interface. It allows to read the UUID slice from the database value.
func (UUID) TagValue ¶
TagValue implements the tagValuer interface, to work with https://github.com/gobuffalo/tags.
func (*UUID) UnmarshalJSON ¶
UnmarshalJSON will unmarshall JSON value into the UUID slice representation of this value.
func (*UUID) UnmarshalText ¶
UnmarshalText will unmarshall text value into the UUID slice representation of this value.