| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 683c769 commit 90fd7c6
24 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,3 +4,7 @@ Bigquery Storage v1beta2 API Library | |||
| 4 | 4 | .. automodule:: google.cloud.bigquery_storage_v1beta2.client | |
| 5 | 5 | :members: | |
| 6 | 6 | :inherited-members: | |
| 7 | + | ||
| 8 | + .. automodule:: google.cloud.bigquery_storage_v1beta2.writer | ||
| 9 | + :members: | ||
| 10 | + :inherited-members: | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,10 +30,15 @@ class BigQueryReadClient(client.BigQueryReadClient): | |||
| 30 | 30 | __doc__ = client.BigQueryReadClient.__doc__ | |
| 31 | 31 | ||
| 32 | 32 | ||
| 33 | + class BigQueryWriteClient(client.BigQueryWriteClient): | ||
| 34 | + __doc__ = client.BigQueryWriteClient.__doc__ | ||
| 35 | + | ||
| 36 | + | ||
| 33 | 37 | __all__ = ( | |
| 34 | 38 | # google.cloud.bigquery_storage_v1beta2 | |
| 35 | 39 | "__version__", | |
| 36 | 40 | "types", | |
| 37 | 41 | # google.cloud.bigquery_storage_v1beta2.client | |
| 38 | 42 | "BigQueryReadClient", | |
| 43 | + "BigQueryWriteClient", | ||
| 39 | 44 | ) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,12 +19,14 @@ | |||
| 19 | 19 | This is the base from which all interactions with the API occur. | |
| 20 | 20 | """ | |
| 21 | 21 | ||
| 22 | - from __future__ import absolute_import | ||
| 23 | - | ||
| 24 | 22 | import google.api_core.gapic_v1.method | |
| 23 | + import google.api_core.retry | ||
| 25 | 24 | ||
| 26 | 25 | from google.cloud.bigquery_storage_v1 import reader | |
| 27 | - from google.cloud.bigquery_storage_v1beta2.services import big_query_read | ||
| 26 | + from google.cloud.bigquery_storage_v1beta2.services import ( | ||
| 27 | + big_query_read, | ||
| 28 | + big_query_write, | ||
| 29 | + ) | ||
| 28 | 30 | ||
| 29 | 31 | ||
| 30 | 32 | _SCOPES = ( | |
@@ -135,3 +137,7 @@ def read_rows( | |||
| 135 | 137 | offset, | |
| 136 | 138 | {"retry": retry, "timeout": timeout, "metadata": metadata}, | |
| 137 | 139 | ) | |
| 140 | + | ||
| 141 | + | ||
| 142 | + class BigQueryWriteClient(big_query_write.BigQueryWriteClient): | ||
| 143 | + __doc__ = big_query_write.BigQueryWriteClient.__doc__ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,17 @@ | |||
| 1 | + # Copyright 2021 Google LLC | ||
| 2 | + # | ||
| 3 | + # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 4 | + # you may not use this file except in compliance with the License. | ||
| 5 | + # You may obtain a copy of the License at | ||
| 6 | + # | ||
| 7 | + # https://www.apache.org/licenses/LICENSE-2.0 | ||
| 8 | + # | ||
| 9 | + # Unless required by applicable law or agreed to in writing, software | ||
| 10 | + # distributed under the License is distributed on an "AS IS" BASIS, | ||
| 11 | + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 12 | + # See the License for the specific language governing permissions and | ||
| 13 | + # limitations under the License. | ||
| 14 | + | ||
| 15 | + | ||
| 16 | + class StreamClosedError(Exception): | ||
| 17 | + """Operation not supported while stream is closed.""" | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments