set_datasource_priority
Set datasource priority to resolve ambiguous model names. When a bare model name exists in multiple datasources, this order determines which datasource is chosen first.
Instructions
Configure how SLayer disambiguates bare model names that exist in multiple datasources.
When two datasources both define a model named users, calling
edit_model("users") (no data_source=) is ambiguous. SLayer
walks this priority list and picks the first datasource that has
the requested name. If none of the candidates appear in the list,
an AmbiguousModelError is raised.
Args:
priority: Datasource names, most-preferred first. Each entry
must already exist (run list_datasources first). Pass
an empty list to clear the priority.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| priority | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |