original_docstring: Test whether this database exists.
  
          See
          https://cloud.google.com/spanner/reference/rpc/google.spanner.admin.database.v1#google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDDL
  
          :rtype: bool
          :returns: True if the database exists, else false.
          
docstring: Test whether this database exists.
docstring_tokens: Test whether this database exists .
code: def exists(self):
          """Test whether this database exists.
  
          See
          https://cloud.google.com/spanner/reference/rpc/google.spanner.admin.database.v1#google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDDL
  
          :rtype: bool
          :returns: True if the database exists, else false.
          """
          api = self._instance._client.database_admin_api
          metadata = _metadata_with_prefix(self.name)
  
          try:
              api.get_database_ddl(database=self.name, metadata=metadata)
          except NotFound:
              return False
          return True
code_tokens: def exists ( self ) : api = self . _instance . _client . database_admin_api metadata = _metadata_with_prefix ( self . name ) try : api . get_database_ddl ( database = self . name , metadata = metadata ) except NotFound : return False return True
short_docstring: Test whether this database exists.
short_docstring_tokens: Test whether this database exists .
comment: """Test whether this database exists.
  
          See
          https://cloud.google.com/spanner/reference/rpc/google.spanner.admin.database.v1#google.spanner.admin.database.v1.DatabaseAdmin.GetDatabaseDDL
  
          :rtype: bool
          :returns: True if the database exists, else false.
          """