Share via


Catalog.GetDatabase(String) Method

Definition

Get the database with the specified name.

Calling GetDatabase gives you access to the hive database name, description and location.

public Microsoft.Spark.Sql.Catalog.Database GetDatabase (string dbName);
member this.GetDatabase : string -> Microsoft.Spark.Sql.Catalog.Database
Public Function GetDatabase (dbName As String) As Database

Parameters

dbName
String

Name of the database to get.

Returns

Database object which includes the name, description and locationUri of the database.

Applies to