-
Notifications
You must be signed in to change notification settings - Fork 0
/
inmemory.go
50 lines (30 loc) · 1.03 KB
/
inmemory.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package bq
import "cloud.google.com/go/bigquery"
type ClientInMemory struct{}
func NewClientInMemory() Client {
return &ClientInMemory{}
}
func (c *ClientInMemory) GetQueryStats(q string, params []bigquery.QueryParameter) (*bigquery.JobStatistics, error) {
return nil, nil
}
func (c *ClientInMemory) Insert(string, string, interface{}) error {
return nil
}
func (*ClientInMemory) QueryIterator(string, []bigquery.QueryParameter) (Iterator, error) {
panic("invalid operation")
}
func (*ClientInMemory) Query(string) error {
return nil
}
func (*ClientInMemory) DatasetIterator(func(*bigquery.Dataset)) error { return nil }
func (*ClientInMemory) DeleteDataset(string) error { return nil }
func (*ClientInMemory) CreateDataset(string) error { return nil }
func (*ClientInMemory) CreateTable(string, string, *bigquery.TableMetadata) error {
panic("invalid operation")
}
func (*ClientInMemory) DeleteTable(string, string) error {
panic("invalid operation")
}
func (*ClientInMemory) Close() error {
panic("invalid operation")
}