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