google-cloud-go
google-cloud-go copied to clipboard
feat(bigquery): add CreateIfNotExists helpers and related errors
This adds the helpers methods CreateIfNotExists
to the Dataset
and Table
structs, to replicate the same semantics of CREATE IF NOT EXISTS
from SQL. Also adds ErrTableNotFound
and ErrDatasetNotFound
that can be returned from the Metadata
call, to avoid having to look underneath the library for googleapi.Error
s.
Resolves #2808