package
0.2.1
Repository: https://github.com/theory/sqljson.git
Documentation: pkg.go.dev

# Functions

ContextWithTZ returns a new Context that carries value tz.
NewDate coerces src into a Date.
NewTime coerces src into a Time.
NewTimestamp coerces src into a Timestamp.
NewTimestampTZ creates a timestamp with time zone with src.
NewTimeTZ coerces src into a TimeTZ.
ParseTime parses src into [time.Time] by iterating through a list of valid date, time, and timestamp formats according to SQL/JSON standard: date, time_tz, time, timestamp_tz, and timestamp.
TZFromContext returns the time.Location value stored in ctx or time.UTC.

# Variables

ErrSQLType wraps errors returned by the types package.

# Structs

Date represents the PostgreSQL date type.
Time represents the PostgreSQL time without time zone type.
Timestamp represents the PostgreSQL timestamp without time zone type.
TimestampTZ represents the PostgreSQL timestamp with time zone type.
TimeTZ represents the PostgreSQL time with time zone type.

# Interfaces

DateTime defines the interface for all date and time data types.