A Kusto cluster can have several databases, which are represented in AzureKusto via az_kusto_database R6 objects. The az_kusto
class provides the create_database
, get_database
, delete_database
and list_databases
methods for creating, deleting and retrieving databases. It's recommended to use these methods rather than calling az_kusto_database$new()
directly.
create_database
takes the following arguments. It returns an object of class az_kusto_database
database
: The name of the database to create.
retention_period
: The retention period of the database, after which data will be soft-deleted.
cache_period
: The cache period of the database, the length of time for which queries will be cached.
get_database
takes a single argument database
, the name of the database to retrieve, and returns an object of class az_kusto_database
. delete_database
takes the name of the database to delete and returns NULL on a successful deletion. list_databases
takes no arguments and returns a list of az_kusto_database
objects, one for each database in the cluster.