pyspark.sql.Catalog.currentDatabase

Catalog.currentDatabase()[source]

Returns the current default database in this session.

New in version 2.0.