pqtype
packagemoduleThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
README¶
pqtype
pqtype implements Go types for PostgreSQL types when using thelib/pq driver.
Compatibility
pqtype is tested against PostgreSQL 9.6 through 13 and Go 1.13 through 1.17.While these types may work with other drivers, they areonly tested againstthe lib/pq driver.
History
pqtype is a fork ofjackc/pgtype with allthe pgx-specific code removed. TheStatus
field on types has been replacedwith aValid
boolean to mirror the standard librarysql.Null*
types.
Documentation¶
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeMacaddr¶
type Macaddr struct {Addrnet.HardwareAddrValidbool}
typeNullRawMessage¶
type NullRawMessage struct {RawMessagejson.RawMessageValidbool// Valid is true if RawMessage is not NULL}
NullRawMessage represents a json.RawMessage that may be null.NullRawMessage implements the Scanner interface soit can be used as a scan destination, similar to NullString.
func (*NullRawMessage)Scan¶
func (n *NullRawMessage) Scan(src interface{})error
Scan implements the Scanner interface.