()
| 37 | } |
| 38 | |
| 39 | func ExampleHstore() { |
| 40 | src := map[string]string{"hello": "world"} |
| 41 | var dst map[string]string |
| 42 | _, err := pgdb.QueryOne(pg.Scan(pg.Hstore(&dst)), `SELECT ?`, pg.Hstore(src)) |
| 43 | if err != nil { |
| 44 | panic(err) |
| 45 | } |
| 46 | fmt.Println(dst) |
| 47 | // Output: map[hello:world] |
| 48 | } |