pyspark.sql.Catalog.listDatabases

Catalog.listDatabases() → List[pyspark.sql.catalog.Database]

Returns a list of databases available across all sessions.