Expand description
Macros and derive for ic-dbms-canister
This crate provides procedural macros to automatically implement traits
required by the ic-dbms-canister.
§Provided Derive Macros
Encode: Automatically implements theEncodetrait for structs.Table: Automatically implements theTableSchematrait and associated types.DbmsCanister: Automatically implements the API for the ic-dbms-canister.
Derive Macros§
- Dbms
Canister - Automatically implements the api for the ic-dbms-canister with all the required methods to interact with the ACL and the defined tables.
- Encode
- Automatically implements the `Encode`` trait for a struct.
- Table
- Given a struct representing a database table, automatically implements
the
TableSchematrait with all the necessary types to work with the ic-dbms-canister. So given this struct: