github.com/guidog/pgxscan (go): Package pgxscan adds the ability to directly scan into structs from pgx query results.  The following Go data types are supported as destinations in a struct:  The data types have to match exactly. No extension or truncation is done.  For example:  A struct field of int32 has to be matched with a SQL result field of int. Neither int64 nor int16 are allowed as destination types for an int result.  This applies to all supported types!  TODO: decide if larger int types should be allowed to hold smaller results. Does only make sense for ints, floating point values would be hit by rounding/representation problems.  pgxscan also supports some slice types directly:  Only 1 dimensional arrays are supported for now. The slices in the struct are overwritten by newly allocated slices. So it does not make sense to pre-allocate anything in there.  Embedded structs are supported. If there are duplicate field names, the highest level name is used. Which is the Go rule for access.  A match is found when the following conditions are met:
Keywords: go|golang|pgx|postgresql