snowflake.core.database.Database¶
- class snowflake.core.database.Database(name: str, created_on: datetime | None = None, 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, kind: str | 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)¶
Bases:
object
Methods
- __init__(name: str, created_on: datetime | None = None, 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, kind: str | 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)¶
- classmethod from_dict(obj: dict) DatabaseModel ¶
Create an instance of Database from a dict
- to_dict()¶
Returns the dictionary representation of the model using alias