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 ¶
MarshalJSON converts the input to a Prisma value
func (*BigInt) UnmarshalJSON ¶
UnmarshalJSON converts the Prisma QE value of string to int64
type 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 ¶
MarshalJSON returns m as the JSON encoding of m.
func (*JSON) UnmarshalJSON ¶
UnmarshalJSON sets *m to a copy of data.
Click to show internal directories.
Click to hide internal directories.