Crates.io | green-barrel |
lib.rs | green-barrel |
version | 1.7.8 |
source | src |
created_at | 2022-08-03 10:19:10.801401 |
updated_at | 2023-09-07 16:06:36.633755 |
description | ORM-like API MongoDB for Rust. |
homepage | https://github.com/kebasyaty/green-barrel |
repository | https://github.com/kebasyaty/green-barrel |
max_upload_size | |
id | 637959 |
size | 445,586 |
For simulate relationship Many-to-One and Many-to-Many, a simplified alternative (Types of selective fields with dynamic addition of elements) is used.
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.