Versions in this module Expand all Collapse all v0 v0.5.0 Nov 3, 2015 Changes in this version + const BatchPriority + const InteractivePriority + const Scope + type Client struct + func NewClient(client *http.Client, projectID string) (*Client, error) + func (c *Client) Copy(ctx context.Context, dst Destination, src Source, options ...Option) (*Job, error) + func (c *Client) CreateTable(ctx context.Context, projectID, datasetID, tableID string, ...) (*Table, error) + func (c *Client) Dataset(id string) *Dataset + func (c *Client) JobFromID(ctx context.Context, id string) (*Job, error) + func (c *Client) NewGCSReference(uri ...string) *GCSReference + func (c *Client) OpenTable(projectID, datasetID, tableID string) *Table + func (c *Client) Read(ctx context.Context, src ReadSource, options ...ReadOption) (*Iterator, error) + type Compression string + const Gzip + const None + type CreateTableOption interface + func TableExpiration(exp time.Time) CreateTableOption + func ViewQuery(query string) CreateTableOption + type DataFormat string + const Avro + const CSV + const DatastoreBackup + const JSON + type Dataset struct + func (d *Dataset) ListTables(ctx context.Context) ([]*Table, error) + type Destination interface + type Encoding string + const ISO_8859_1 + const UTF_8 + type Error struct + Location string + Message string + Reason string + func (e Error) Error() string + type FieldSchema struct + Description string + Name string + Repeated bool + Required bool + Schema Schema + Type FieldType + type FieldType string + const BooleanFieldType + const FloatFieldType + const IntegerFieldType + const RecordFieldType + const StringFieldType + const TimestampFieldType + type GCSReference struct + Compression Compression + DestinationFormat DataFormat + Encoding Encoding + FieldDelimiter string + ForceZeroQuote bool + Quote string + SkipLeadingRows int64 + SourceFormat DataFormat + type Iterator struct + func (it *Iterator) Err() error + func (it *Iterator) Get(dst interface{}) error + func (it *Iterator) Next(ctx context.Context) bool + type Job struct + func (j *Job) ID() string + func (j *Job) Status(ctx context.Context) (*JobStatus, error) + type JobStatus struct + Errors []*Error + State State + func (s *JobStatus) Done() bool + func (s *JobStatus) Err() error + type Option interface + func AllowJaggedRows() Option + func AllowQuotedNewlines() Option + func CreateDisposition(disp TableCreateDisposition) Option + func DestinationSchema(schema Schema) Option + func DisableHeader() Option + func DisableQueryCache() Option + func IgnoreUnknownValues() Option + func JobID(ID string) Option + func JobPriority(priority string) Option + func MaxBadRecords(n int64) Option + func WriteDisposition(disp TableWriteDisposition) Option + type Query struct + DefaultDatasetID string + DefaultProjectID string + Q string + type ReadOption interface + func RecordsPerRequest(n int64) ReadOption + func StartIndex(i uint64) ReadOption + type ReadSource interface + type Schema []*FieldSchema + type Source interface + type State int + const Done + const Pending + const Running + type Table struct + DatasetID string + ProjectID string + TableID string + func (t *Table) Delete(ctx context.Context) error + func (t *Table) FullyQualifiedName() string + func (t *Table) Metadata(ctx context.Context) (*TableMetadata, error) + func (t *Table) Patch() *TableMetadataPatch + type TableCreateDisposition string + const CreateIfNeeded + const CreateNever + type TableMetadata struct + CreationTime time.Time + Description string + ExpirationTime time.Time + ID string + LastModifiedTime time.Time + Name string + NumBytes int64 + NumRows uint64 + Schema Schema + Type TableType + View string + type TableMetadataPatch struct + func (p *TableMetadataPatch) Apply(ctx context.Context) (*TableMetadata, error) + func (p *TableMetadataPatch) Description(desc string) + func (p *TableMetadataPatch) Name(name string) + type TableType string + const RegularTable + const ViewTable + type TableWriteDisposition string + const WriteAppend + const WriteEmpty + const WriteTruncate + type Tables []*Table + type Value interface + type ValueList []Value + func (vs *ValueList) Load(v []Value) error + type ValueLoader interface + Load func(v []Value) error v0.5.0-rc4 Oct 29, 2015