pyspark.sql.Catalog.currentDatabase

Catalog.currentDatabase() → str

Returns the current default database in this session.