From 0a213e64744fa9302fa9502bc8d02a266b31ff0c Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Fri, 19 Sep 2014 17:38:35 -0500 Subject: [PATCH] Add hstore to docs --- README.md | 1 + doc.go | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 664333c6..0ffee866 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ The pgx native interface supports the following extra features: * Logging support * Configurable connection pool with after connect hooks to do arbitrary connection setup * PostgreSQL array to Go slice mapping for integers, floats, and strings +* Hstore support ## database/sql diff --git a/doc.go b/doc.go index db0e0ca2..d8fec79d 100644 --- a/doc.go +++ b/doc.go @@ -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 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 pgx includes support for the common data types like integers, floats, strings,