Expand description
Runtime-agnostic procedural macros for the wasm-dbms DBMS engine.
This crate provides procedural macros to automatically implement traits
required by the wasm-dbms engine.
§Provided Derive Macros
Encode: Automatically implements theEncodetrait for structs.Table: Automatically implements theTableSchematrait and associated types.DatabaseSchema: GeneratesDatabaseSchema<M>trait dispatch andregister_tables.CustomDataType: Bridge user-defined types into theValuesystem.
Derive Macros§
- Custom
Data Type - Derives the
CustomDataTypetrait and animpl From<T> for Valueconversion for a user-defined enum or struct. - Database
Schema - Generates a
DatabaseSchemaimplementation that dispatches generic DBMS operations to the correct concrete table types. - Encode
- Automatically implements the
Encodetrait for a struct. - Table
- Given a struct representing a database table, automatically implements
the
TableSchematrait with all the necessary types to work with the wasm-dbms engine. So given this struct: