#mongodb #mango #database #model #macro

metamorphose

Macros collection for converting Structure to Model, for a mango-orm project

57 releases

0.2.59 Jun 10, 2021
0.2.45-alpha.2 Apr 20, 2021
0.2.36-alpha.2 Mar 27, 2021
0.2.9-alpha.2 Dec 23, 2020
0.2.2-alpha.2 Nov 21, 2020

#263 in Database interfaces

Download history 8/week @ 2021-03-03 15/week @ 2021-03-10 18/week @ 2021-03-17 92/week @ 2021-03-24 144/week @ 2021-03-31 65/week @ 2021-04-07 114/week @ 2021-04-14 33/week @ 2021-04-21 62/week @ 2021-04-28 61/week @ 2021-05-05 78/week @ 2021-05-12 65/week @ 2021-05-19 37/week @ 2021-05-26 3/week @ 2021-06-02 73/week @ 2021-06-09

263 downloads per month

MIT/Apache

83KB
1.5K SLoC

Logo

metamorphose

Macros collection for converting Structure to Model, for a mango-orm project.

crates.io crates.io crates.io crates.io

Macros

Model

Macro for converting Structure to mango-orm Model. The model can access the database. The model can create, update, and delete documents in collections.

Form

Macro for converting Structure to mango-orm Form. The form does not have access to the database. Form are needed where it makes no sense to use a model - To create a search form, to recover a password, to combine models, etc.

Requirements

  • quote
  • regex
  • serde_json
  • syn
  • serde

License

This project is licensed under the MIT and Apache Version 2.0

Dependencies

~2–3MB
~78K SLoC