1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! # Green Barrel
//! **ORM-like API MongoDB for Rust.**
//!
//! ## Usage:
//!
//! [Basic Example](https://github.com/kebasyaty/green-barrel/tree/master/examples/basic "Basic Example")
//!
//! ## Model parameters
//!
//! **_( 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**.                                                 |
//!

#[macro_use]
extern crate rust_i18n;

i18n!("locales");

pub mod fields;
pub mod migration;
pub mod models;
pub mod store;
pub mod test_tool;

pub use crate::{
    fields::*,
    migration::Monitor,
    models::{
        addition::Addition,
        caching::Caching,
        control::Control,
        converters::Converters,
        db_query_api::{commons::QCommons, paladins::QPaladins},
        fixtures::Fixtures,
        helpers::{ControlArr, FileData, ImageData, Meta},
        hooks::Hooks,
        output_data::{OutputData, OutputData2},
        validation::Validation,
        Main,
    },
    store::METADATA,
    test_tool::del_test_db,
};