schema
schema ¶
a class based approach for interacting with Domo Datasets
DomoDataset_Schema
dataclass
¶
DomoDataset_Schema(
parent: DomoEntity,
columns: list[DomoDataset_Schema_Column] = list(),
)
Bases: DomoSubEntity
class for interacting with dataset schemas
add_col
async
¶
add_col(
col: DomoDataset_Schema_Column,
debug_prn: bool = False,
is_update_schema: bool = True,
debug_api: bool = False,
session: AsyncClient = None,
)
Add a column to the schema.
Source code in src/crew_dcs/classes/DomoDataset/schema.py
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 | |
get
async
¶
get(
debug_api: bool = False,
return_raw: bool = False,
*,
context: RouteContext | None = None,
**context_kwargs
) -> list[DomoDataset_Schema_Column]
method that retrieves schema for a dataset
Source code in src/crew_dcs/classes/DomoDataset/schema.py
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
remove_col
async
¶
remove_col(
col_to_remove: DomoDataset_Schema_Column,
debug_api: bool = False,
is_update_schema: bool = True,
session: AsyncClient = None,
)
Remove a column from the schema.
Source code in src/crew_dcs/classes/DomoDataset/schema.py
199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 | |