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: Returns the current default database in this session.
  
  .. versionadded:: 2.0.0
  
  Returns
  -------
  str
      The current default database name.
  
  Examples
  --------
  >>> spark.catalog.currentDatabase()
  'default'
docstr_tok: ["Returns","the","current","default","database","in","this","session",".","..","versionadded",":",":","2.0.0","Returns","--","--","--","-","str","The","current","default","database","name",".","Examples","--","--","--","--",">",">",">","spark.catalog.currentDatabase","(",")","'default","'"]
code: def currentDatabase(self) -> str:
      """
      Returns the current default database in this session.
  
      .. versionadded:: 2.0.0
  
      Returns
      -------
      str
          The current default database name.
  
      Examples
      --------
      >>> spark.catalog.currentDatabase()
      'default'
      """
      return self._jcatalog.currentDatabase()
  
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 5 for calling the Catalog obj's underlying member method code with example usage: obj.currentDatabase() and returns: self