Skip to main contentCrate gearbox_rs_macros
Source - pg_queries
- Generate custom query methods on
PgClient.
- cog
- Derive macro for creating a Cog with automatic dependency injection.
- cog_config
- Implements
CogConfig trait for a struct with the given config key. - delete
- Defines a DELETE route handler with automatic dependency injection.
- gearbox_app
- Generates a Gearbox application entry point.
- get
- Defines a GET route handler with automatic dependency injection.
- patch
- Defines a PATCH route handler with automatic dependency injection.
- post
- Defines a POST route handler with automatic dependency injection.
- put
- Defines a PUT route handler with automatic dependency injection.
- Crud
- Derive macro for generating REST CRUD endpoints with pagination.
- PgEntity
- Derive macro for implementing
PgEntity and PgRepository traits.