types

package
v0.0.0-...-91e0ed7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const RFC3339Milli = "2006-01-02T15:04:05.999Z07:00"

Variables

View Source
var ErrNotFound = errors.New("ErrNotFound")

ErrNotFound gets returned when a database record does not exist

Functions

func MarshalJSON

func MarshalJSON(b JSON) graphql.Marshaler

Types

type BatchResult

type BatchResult struct {
	Count int `json:"count"`
}

type BigInt

type BigInt int64

BigInt is a type alias for int64

func (*BigInt) MarshalJSON

func (m *BigInt) MarshalJSON() ([]byte, error)

MarshalJSON converts the input to a Prisma value

func (*BigInt) UnmarshalJSON

func (m *BigInt) UnmarshalJSON(data []byte) error

UnmarshalJSON converts the Prisma QE value of string to int64

type Bytes

type Bytes = []byte

Bytes is a type alias for []byte

type DateTime

type DateTime = time.Time

DateTime is a type alias for time.Time

type Decimal

type Decimal = decimal.Decimal

Decimal points to github.com/shopspring/decimal.Decimal, as Go does not have a native decimal type

type JSON

type JSON map[string]interface{}

JSON is a new type which implements the correct internal prisma (un)marshaller

func UnmarshalJSON

func UnmarshalJSON(v interface{}) (JSON, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL