# README
GoSQL types collection
Library of standart sql collections an types like:
- Char
- NumberArrays generic (Ordered, Nullable) Numbers only (int, float, ...)
- StringArray
- JSON generic with any type of value
structs
,scalars
, ...
import (
"github.com/geniusrabbit/gosql/v2"
)
type Model struct {
ID uint64
Title string
Configuration gosql.JSON[Config]
Tags gosql.StringArray
DebugMetricQuartiles gosql.NullableOrderedNumberArray[float64]
}
License MIT
# Functions
ArrayNumberDecode decodes array of type int.
ArrayEncode encodes array of type int.
MustJSON creates new JSON object.
MustJSONArray creates new JSONArray object.
MustNullableJSON creates new JSON object.
MustNullableJSONArray creates new NullableJSONArray object.
NewJSON creates new JSON object.
NewJSONArray creates new JSONArray object.
NewNullableJSON creates new JSON object.
NewNullableJSONArray creates new NullableJSONArray object.
ParseDuration parses a duration string.
# Constants
Duration constants.
Duration constants.
Duration constants.
Duration constants.
Duration constants.
Duration constants.
# Variables
Set of errors.
Set of errors.
Set of errors.
Set of errors.
Set of errors.
# Interfaces
Number general type.
# Type aliases
Char type of field.
Duration is a wrapper around time.Duration that allows us to.
No description provided by the author
NullableNumberArray type of field.
NullableOrderedNumberArray[T Number] type of field.
NullableStringArray implementation.
NumberArray[T Number] type of field.
OrderedNumberArray type of field.
StringArray implementation.