sqltypes

package
v0.8.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key ulid.ULID

Key is a ULID that can be used as a column in a database.

func (*Key) Scan

func (u *Key) Scan(src any) error

func (*Key) UnmarshalText

func (u *Key) UnmarshalText(text []byte) error

func (Key) Value

func (u Key) Value() (driver.Value, error)

type NullDuration

type NullDuration = types.Option[time.Duration]

type NullKey

type NullKey = types.Option[Key]

func FromOption

func FromOption[T ~[16]byte](o types.Option[T]) NullKey

FromOption converts a types.Option[~ulid.ULID] to a NullKey.

func NoneKey

func NoneKey() NullKey

func SomeKey

func SomeKey(key Key) NullKey

type NullTime

type NullTime = types.Option[time.Time]

Jump to

Keyboard shortcuts

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