Documentation ¶
Index ¶
- type Hstore
- type Hstorer
- type Meta
- func (m Meta) Filter(keys ...string) (out Meta)
- func (m Meta) Get(key string) (v interface{}, ok bool)
- func (m Meta) IsEmpty() bool
- func (m *Meta) Merge(other Meta)
- func (m *Meta) Scan(b interface{}) error
- func (m Meta) Set(k string, v interface{})
- func (m Meta) ToMaps(h map[string][]string)
- func (m Meta) Unset(k string)
- func (m Meta) Value() (driver.Value, error)
- type NullHstore
- type Qarray
- type StringArray
- type StringSlice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hstore ¶
type Hstore map[string]interface{}
data type for storing sets of key/value pairs within a single PostgreSQL value.
func NewHstore ¶
build a hstore from string.
example: text := `"ext"=>".jpg", "size"=>"34508", "width"=>"758", "height"=>"140", "quality"=>"93"`
func StructToHstore ¶
func StructToHstore(s interface{}) Hstore
type NullHstore ¶
func (*NullHstore) Scan ¶
func (n *NullHstore) Scan(value interface{}) error
Scan implements the Scanner interface.
type Qarray ¶
type Qarray []interface{}
func NewQarrayText ¶
func (Qarray) ToStringSlice ¶
type StringArray ¶
type StringArray = pq.StringArray
type StringSlice ¶
type StringSlice pq.StringArray
func (StringSlice) Contains ¶
func (q StringSlice) Contains(s string) bool
Contains returns true if the string s is found
func (StringSlice) Index ¶
func (q StringSlice) Index(s string) int
Index returns the index of the string s in StringSlice, or -1 if s is not found.
Click to show internal directories.
Click to hide internal directories.