snowflake.core.database.Database | Snowflake Documentation (original) (raw)

class snowflake.core.database.Database(name: str, created_on: datetime | None = None, kind: str | None = 'PERMANENT', is_default: bool | None = None, is_current: bool | None = None, origin: str | None = None, owner: str | None = None, comment: str | None = None, options: str | None = None, retention_time: int | None = None, dropped_on: datetime | None = None, budget: str | None = None, owner_role_type: str | None = None, data_retention_time_in_days: int | None = None, default_ddl_collation: str | None = None, log_level: str | None = None, max_data_extension_time_in_days: int | None = None, suspend_task_after_num_failures: int | None = None, trace_level: str | None = None, user_task_managed_initial_warehouse_size: str | None = None, user_task_timeout_ms: int | None = None, serverless_task_min_statement_size: str | None = None, serverless_task_max_statement_size: str | None = None)

Bases: object

A model object representing the Database resource.

Constructs an object of type Database with the provided properties.

Parameters:

Methods

classmethod from_dict(obj: dict) → DatabaseModel

Creates an instance of Database from a dict.

This method constructs a Database object from a dictionary with the key-value pairs of its properties.

Parameters:

obj (dict) – A dictionary whose keys and values correspond to the properties of the resource object.

Returns:

A Database object created using the input dictionary; this will fail if the required properties are missing.

Return type:

Database

to_dict()

Creates a dictionary of the properties from a Database.

This method constructs a dictionary with the key-value entries corresponding to the properties of the Database object.

Returns:

A dictionary object created using the input model.

Return type:

dict