Categorygithub.com/geniusrabbit/gosql/v2
modulepackage
2.3.1
Repository: https://github.com/geniusrabbit/gosql.git
Documentation: pkg.go.dev

# README

GoSQL types collection

Build Status Go Report Card GoDoc Coverage Status

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

LICENSE

# 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.

# Structs

JSON field.
NullableJSON field.

# 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.