Crate gorm_macros

Crate gorm_macros 

Source

Macros§

create_field_name_cons_list
Given a field name as an ident, returns a field name typed cons list type.
migration
Implements the Migration trait for some struct, given the tables that it should manage.
returning
This macro is just another name for the select_values! macro, for usage information check out the documentation on that macro.
select_values
A macro which allows selecting custom values from a query.
selected_value_to_order_by
This macro provides a way to order the results of a query by a value selected using the select_values macro.
update_set
This macro allows providing a set of updates to perform on each row in an sql update statement.

Derive Macros§

FromQueryResult
Implements the FromQueryResult trait for some struct.
SqlEnum
Implements the SqlEnum trait for some type. This allows using this type as a field in a table struct, and using it in sql expresions.
Table
Implements the Table trait for the some struct, and creates a table module for it containing some useful items which allow performing operations on this table.