package hstore
import "github.com/lib/pq/hstore"
Index ¶
Types ¶
type Hstore ¶
type Hstore struct { Map map[string]sql.NullString }
Hstore is a wrapper for transferring Hstore values back and forth easily.
func (*Hstore) Scan ¶
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 ¶
Value implements the driver Valuer interface. Note if h.Map is nil, the database column value will be set to NULL.
Source Files ¶
- Version
- v1.6.0
- Published
- May 26, 2020
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 week ago –
Tools for package owners.