Crate atmosphere_macros

source ·
Expand description

§Macros for Atmosphere

This crate provides a set of procedural macros to simplify and automate various tasks in atmosphere. These macros enhance the developer experience by reducing boilerplate, ensuring consistency, and integrating seamlessly with the framework’s functionalities.

This crate includes macros for deriving schema information from structs, handling table-related attributes, and managing hooks within the framework. The macros are designed to be intuitive and align with the framework’s conventions, making them a powerful tool in the application development process.

Attribute Macros§

  • An attribute macro for registering on a table. Must be used after #[derive(Schema)].
  • An attribute macro that stores metadata about the sql table. Must be used after #[derive(Schema)].

Derive Macros§

  • A derive macro that processes structs to automatically generate schema-related code. It reads custom attributes and derives necessary traits and implementations for interacting with the database.