google-cloud v0.6.0 Release Notes
-
๐ Beta release of BigQuery, DataStore, Logging and Storage. See the blog post.
bigquery:
- struct support. Read a row directly into a struct with
RowIterator.Next
, and upload a row directly from a struct withUploader.Put
. ๐ You can also use field tags. See the [package documentation][cloud-bigquery-ref] for details. - The
ValueList
type was removed. It is no longer necessary. Instead ofgo var v ValueList ... it.Next(&v) ..
use
- struct support. Read a row directly into a struct with
var v []Value ... it.Next(&v) ...
Previously, repeatedly calling
RowIterator.Next
on the same[]Value
orValueList
would append to the slice. Now each call resets the size to zero first.Schema inference will infer the SQL type BYTES for a struct field of type []byte. Previously it inferred STRING.
The types
uint
,uint64
anduintptr
are no longer supported in schema inference. BigQuery's integer type is INT64, and those types may hold values that are not correctly represented in a 64-bit signed integer.