Add hstore to docs

pull/37/head
Jack Christensen 2014-09-19 17:38:35 -05:00
parent 98853ea98f
commit 0a213e6474
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ The pgx native interface supports the following extra features:
* Logging support * Logging support
* Configurable connection pool with after connect hooks to do arbitrary connection setup * Configurable connection pool with after connect hooks to do arbitrary connection setup
* PostgreSQL array to Go slice mapping for integers, floats, and strings * PostgreSQL array to Go slice mapping for integers, floats, and strings
* Hstore support
## database/sql ## database/sql

6
doc.go
View File

@ -131,6 +131,12 @@ and the equivalent PostgreSQL array type. Go slices of native types do not
support nulls, so if a PostgreSQL array that contains a slice is read into a support nulls, so if a PostgreSQL array that contains a slice is read into a
native Go slice an error will occur. native Go slice an error will occur.
Hstore Mapping
pgx includes an Hstore type and a NullHstore type. Hstore is simply a
map[string]string and is preferred when the hstore contains no nulls. NullHstore
follows the Null* pattern and supports null values.
Custom Type Support Custom Type Support
pgx includes support for the common data types like integers, floats, strings, pgx includes support for the common data types like integers, floats, strings,