hstore

package
v3.0.0-beta6+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2016 License: MIT, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hstore

type Hstore struct {
	Map map[string]sql.NullString
}

A wrapper for transferring Hstore values back and forth easily.

func (*Hstore) Scan

func (h *Hstore) Scan(value interface{}) error

Scan implements the Scanner interface.

Note h.Map is reallocated before the scan to clear existing values. If the hstore column's database value is NULL, then h.Map is set to nil instead.

func (Hstore) Value

func (h Hstore) Value() (driver.Value, error)

Value implements the driver Valuer interface. Note if h.Map is nil, the database column value will be set to NULL.

Jump to

Keyboard shortcuts

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