pq: github.com/lib/pq/hstore Index | Files

package hstore

import "github.com/lib/pq/hstore"

Index

Package Files

hstore.go

type Hstore Uses

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

A wrapper for transferring Hstore values back and forth easily.

func (*Hstore) Scan Uses

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 Uses

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.

Package hstore imports 3 packages (graph) and is imported by 89 packages. Updated 2016-11-10. Refresh now. Tools for package owners.