For simulate relationship Many-to-One and Many-to-Many, a simplified alternative (Types of selective fields with dynamic addition of elements) is used.
MongoDB tested on versions 4.2, 4.4, 5.0, 6.0
- Support for GreenPanel is temporarily unavailable.
- mongodb
- serde
- chrono
- image
- lazy_static
- rand
- regex
- rust-argon2
- serde_json
- slug
- validator
- uuid
- async-lock
- async-trait
- futures
- tokio
- rust-i18n
- metamorphose
Follow the link Install MongoDB.
( all parameters are optional )
Parameter: | Default: | Description: |
---|---|---|
db_query_docs_limit | 1000 | limiting query results. |
is_add_doc | true | Create documents in the database. false - Alternatively, use it to validate data from web forms. |
is_up_doc | true | Update documents in the database. |
is_del_doc | true | Delete documents from the database. |
ignore_fields | empty string | Fields that are not included in the database (separated by commas). |
is_use_addition | false | Allows methods for additional actions and additional validation. |
is_use_hooks | false | Allows hooks methods - impl Hooks for ModelName. |
See documentation -fields.
- hash()
- set_hash()
- obj_id()
- set_obj_id()
- created_at()
- updated_at()
- meta()
- new()
- json()
- update_dyn_field()
- custom()
- add_actions()
- add_validation()
- pre_create()
- post_create()
- pre_update()
- post_update()
- pre_delete()
- post_delete()
- create_index()
- drop_index()
- create_indexes()
- drop_indexes()
- aggregate()
- count_documents()
- delete_many()
- delete_one()
- distinct()
- drop()
- estimated_document_count()
- find_many_to_doc_list()
- find_many_to_json()
- find_one_to_doc()
- find_one_to_json()
- find_one_to_instance()
- find_one_and_delete()
- collection_name()
- namespace()
- check()
- save()
- delete()
- create_password_hash()
- verify_password()
- update_password()
- run_fixture()