@@ -103,7 +103,7 @@ class Database(object):
103
103
passed, the database will construct an instance of
104
104
:class:`~google.cloud.spanner_v1.pool.BurstyPool`.
105
105
106
- :type logger: `logging.Logger`
106
+ :type logger: :class: `logging.Logger`
107
107
:param logger: (Optional) a custom logger that is used if `log_commit_stats`
108
108
is `True` to log commit statistics. If not passed, a logger
109
109
will be created when needed that will log the commit statistics
@@ -138,7 +138,7 @@ def from_pb(cls, database_pb, instance, pool=None):
138
138
"""Creates an instance of this class from a protobuf.
139
139
140
140
:type database_pb:
141
- :class:`~google.cloud.spanner_admin_instance_v1.Instance`
141
+ :class:`~google.cloud.spanner_admin_instance_v1.types. Instance`
142
142
:param database_pb: A instance protobuf object.
143
143
144
144
:type instance: :class:`~google.cloud.spanner_v1.instance.Instance`
@@ -199,7 +199,7 @@ def name(self):
199
199
def state (self ):
200
200
"""State of this database.
201
201
202
- :rtype: :class:`~google.cloud.spanner_admin_database_v1.Database.State`
202
+ :rtype: :class:`~google.cloud.spanner_admin_database_v1.types. Database.State`
203
203
:returns: an enum describing the state of the database
204
204
"""
205
205
return self ._state
@@ -218,7 +218,7 @@ def create_time(self):
218
218
def restore_info (self ):
219
219
"""Restore info for this database.
220
220
221
- :rtype: :class:`~google.cloud.spanner_v1.database .RestoreInfo`
221
+ :rtype: :class:`~google.cloud.spanner_v1.types .RestoreInfo`
222
222
:returns: an object representing the restore info for this database
223
223
"""
224
224
return self ._restore_info
@@ -310,7 +310,7 @@ def __ne__(self, other):
310
310
def create (self ):
311
311
"""Create this database within its instance
312
312
313
- Inclues any configured schema assigned to :attr:`ddl_statements`.
313
+ Includes any configured schema assigned to :attr:`ddl_statements`.
314
314
315
315
See
316
316
https://cloud.google.com/spanner/reference/rpc/google.spanner.admin.database.v1#google.spanner.admin.database.v1.DatabaseAdmin.CreateDatabase
@@ -429,12 +429,12 @@ def execute_partitioned_dml(
429
429
required if parameters are passed.
430
430
431
431
:type query_options:
432
- :class:`~google.cloud.spanner_v1.ExecuteSqlRequest.QueryOptions`
432
+ :class:`~google.cloud.spanner_v1.types. ExecuteSqlRequest.QueryOptions`
433
433
or :class:`dict`
434
434
:param query_options:
435
435
(Optional) Query optimizer configuration to use for the given query.
436
436
If a dict is provided, it must be of the same form as the protobuf
437
- message :class:`~google.cloud.spanner_v1.QueryOptions`
437
+ message :class:`~google.cloud.spanner_v1.types. QueryOptions`
438
438
439
439
:rtype: int
440
440
:returns: Count of rows affected by the DML statement.
@@ -568,7 +568,7 @@ def run_in_transaction(self, func, *args, **kw):
568
568
:returns: The return value of ``func``.
569
569
570
570
:raises Exception:
571
- reraises any non-ABORT execptions raised by ``func``.
571
+ reraises any non-ABORT exceptions raised by ``func``.
572
572
"""
573
573
# Sanity check: Is there a transaction already running?
574
574
# If there is, then raise a red flag. Otherwise, mark that this one
@@ -895,7 +895,7 @@ def generate_read_batches(
895
895
896
896
:rtype: iterable of dict
897
897
:returns:
898
- mappings of information used peform actual partitioned reads via
898
+ mappings of information used perform actual partitioned reads via
899
899
:meth:`process_read_batch`.
900
900
"""
901
901
partitions = self ._get_snapshot ().partition_read (
@@ -945,7 +945,7 @@ def generate_query_batches(
945
945
946
946
Uses the ``PartitionQuery`` API request to start a partitioned
947
947
query operation. Returns a list of batch information needed to
948
- peform the actual queries.
948
+ perform the actual queries.
949
949
950
950
:type sql: str
951
951
:param sql: SQL query statement
@@ -976,16 +976,16 @@ def generate_query_batches(
976
976
differ.
977
977
978
978
:type query_options:
979
- :class:`~google.cloud.spanner_v1.ExecuteSqlRequest.QueryOptions`
979
+ :class:`~google.cloud.spanner_v1.types. ExecuteSqlRequest.QueryOptions`
980
980
or :class:`dict`
981
981
:param query_options:
982
982
(Optional) Query optimizer configuration to use for the given query.
983
983
If a dict is provided, it must be of the same form as the protobuf
984
- message :class:`~google.cloud.spanner_v1.QueryOptions`
984
+ message :class:`~google.cloud.spanner_v1.types. QueryOptions`
985
985
986
986
:rtype: iterable of dict
987
987
:returns:
988
- mappings of information used peform actual partitioned reads via
988
+ mappings of information used perform actual partitioned reads via
989
989
:meth:`process_read_batch`.
990
990
"""
991
991
partitions = self ._get_snapshot ().partition_query (
@@ -1065,7 +1065,7 @@ def _check_ddl_statements(value):
1065
1065
https://cloud.google.com/spanner/docs/data-definition-language
1066
1066
1067
1067
:type value: list of string
1068
- :param value: DDL statements, excluding the 'CREATE DATABSE ' statement
1068
+ :param value: DDL statements, excluding the 'CREATE DATABASE ' statement
1069
1069
1070
1070
:rtype: tuple
1071
1071
:returns: tuple of validated DDL statement strings.
0 commit comments