types

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

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

This section is empty.

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 json.RawMessage

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

func (JSON) MarshalJSON

func (m JSON) MarshalJSON() ([]byte, error)

MarshalJSON returns m as the JSON encoding of m.

func (*JSON) UnmarshalJSON

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

UnmarshalJSON sets *m to a copy of data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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