Module charybdis::model

source ·

Traits§

  • In extension of partial_model!() in case you need native model in order to run calculations or other operations, you can use as_native method:
  • MaterializedView is a trait that defines the basic structure of materialized view. It is used to generate the necessary code for the charybdis orm. Macro ’charybdis_view_model` generates the necessary code for implementation so you don’t have to write it manually.
  • Model is a trait that defines the basic structure of a table in the database. It is used to generate the necessary code for the charybdis orm. Macro ’charybdis_model` generates the necessary code for implementation so you don’t have to write it manually. The macro is used in the following way:
  • Declare udt model as a struct within src/models/udts dir: