Crate ic_dbms_macros

Crate ic_dbms_macros 

Source
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 the Encode trait for structs.
  • Table: Automatically implements the TableSchema trait and associated types.
  • DbmsCanister: Automatically implements the API for the ic-dbms-canister.

Derive Macros§

DbmsCanister
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 TableSchema trait with all the necessary types to work with the ic-dbms-canister. So given this struct: