class_docstr: User-facing catalog API, accessible through `SparkSession.catalog`.
  
  This is a thin wrapper around its Scala implementation org.apache.spark.sql.catalog.Catalog.
  
  .. versionchanged:: 3.4.0
      Supports Spark Connect.
class_docstr_tok: ["User-facing","catalog","API",",","accessible","through","`","SparkSession.catalog","`",".","This","is","a","thin","wrapper","around","its","Scala","implementation","org.apache.spark.sql.catalog.Catalog",".","..","versionchanged",":",":","3.4.0","Supports","Spark","Connect","."]
docstr: Get the database with the specified name.
  This throws an :class:`AnalysisException` when the database cannot be found.
  
  .. versionadded:: 3.4.0
  
  Parameters
  ----------
  dbName : str
       name of the database to get.
  
  Returns
  -------
  :class:`Database`
      The database found by the name.
  
  Examples
  --------
  >>> spark.catalog.getDatabase("default")
  Database(name='default', catalog='spark_catalog', description='default database', ...
  
  Using the fully qualified name with the catalog name.
  
  >>> spark.catalog.getDatabase("spark_catalog.default")
  Database(name='default', catalog='spark_catalog', description='default database', ...
docstr_tok: ["Get","the","database","with","the","specified","name",".","This","throws","an",":","class",":","`","AnalysisException","`","when","the","database","can","not","be","found",".","..","versionadded",":",":","3.4.0","Parameters","--","--","--","--","--","dbName",":","str","name","of","the","database","to","get",".","Returns","--","--","--","-",":","class",":","`","Database","`","The","database","found","by","the","name",".","Examples","--","--","--","--",">",">",">","spark.catalog.getDatabase","(","``","default","''",")","Database","(","name='default","'",",","catalog='spark_catalog","'",",","description='default","database","'",",","...","Using","the","fully","qualified","name","with","the","catalog","name",".",">",">",">","spark.catalog.getDatabase","(","``","spark_catalog.default","''",")","Database","(","name='default","'",",","catalog='spark_catalog","'",",","description='default","database","'",",","..."]
code: def getDatabase(self, dbName: str) -> Database:
      """Get the database with the specified name.
      This throws an :class:`AnalysisException` when the database cannot be found.
  
      .. versionadded:: 3.4.0
  
      Parameters
      ----------
      dbName : str
           name of the database to get.
  
      Returns
      -------
      :class:`Database`
          The database found by the name.
  
      Examples
      --------
      >>> spark.catalog.getDatabase("default")
      Database(name='default', catalog='spark_catalog', description='default database', ...
  
      Using the fully qualified name with the catalog name.
  
      >>> spark.catalog.getDatabase("spark_catalog.default")
      Database(name='default', catalog='spark_catalog', description='default database', ...
      """
      jdb = self._jcatalog.getDatabase(dbName)
      return Database(
          name=jdb.name(),
          catalog=jdb.catalog(),
          description=jdb.description(),
          locationUri=jdb.locationUri(),
      )
  
imports: import sys
  import warnings
  from typing import Any, Callable, NamedTuple, List, Optional, TYPE_CHECKING
  from pyspark.errors import PySparkTypeError
  from pyspark.storagelevel import StorageLevel
  from pyspark.sql.dataframe import DataFrame
  from pyspark.sql.session import SparkSession
  from pyspark.sql.types import StructType
label_desc: Use image node_id 8 for calling the Catalog obj's underlying member method code with example usage: obj.getDatabase(dbName) and returns: Database