set_datasource_priority
Resolve ambiguous model names by setting datasource priority order. Define which datasource is checked first when the same model exists in multiple datasources.
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 |