Search build for the resource model
:param SearchBuilder: [description] :type SearchBuilder: [type]
Attributes
entity_type: EntityType
Functions
Create a search build to make dynamic search
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
expression | Expression |
Return type:
SearchBuilderType |
Filter the search query by a specific flag
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
flagged | bool |
Return type:
ResourceSearchBuilder |
Filter the search query by a specific folder
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
folder_id | str |
Return type:
ResourceSearchBuilder |
Filter the search query by a specific archived status
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
is_archived | bool |
Return type:
ResourceSearchBuilder |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
table | Type | ||
on | Expression |
Return type:
SearchBuilderType |
Filter the search query by a specific name
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
name | str |
Return type:
ResourceSearchBuilder |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
order | Ordering |
Return type:
SearchBuilderType |
Filter the search query by a specific origin
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
origin | ResourceOrigin |
Return type:
ResourceSearchBuilder |
Filter the search query by a specific parent
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
parent_id | str |
Return type:
ResourceSearchBuilder |
Filter the search query by a specific resource type
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
resource_type | Type |
Return type:
ResourceSearchBuilder |
Filter the search query by a specific resource typing name
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
resource_typing_name | str |
Return type:
ResourceSearchBuilder |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
search | SearchParams |
Return type:
SearchBuilderType |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
tag | Tag | ||
value_operator | SearchOperator | SearchOperator.EQ | |
error_if_key_not_exists | bool | False |
Return type:
SearchBuilderType |
Return type:
ModelSelect |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
filter_ | SearchFilterCriteria |
Return type:
Expression |
Convert a search order criteria to a peewee ordering
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
order | SearchSortCriteria |
Return type:
Ordering |
Method to convert the search value (or values) to type of field
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
field | Field | ||
value | Any |
Return type:
Any |
Return type:
List |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
page | int | 0 | |
number_of_items_per_page | int | 20 |
Return type:
Paginator |
Parameters:
Name | Type | Default value | Description |
---|---|---|---|
orders | List |
Return type:
SearchBuilderType |