#[derive(DeriveArrowSchema)]
{
// Attributes available to this derive:
#[sea_orm]
}
Available on crate feature
macros only.Expand description
The DeriveArrowSchema derive macro generates an arrow_schema() method
that returns an Apache Arrow schema from a SeaORM entity definition.
This macro is automatically applied when #[sea_orm(arrow_schema)] is specified
on a model. You typically don’t need to use this derive macro directly.
§Usage
ⓘ
use sea_orm::entity::prelude::*;
#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "user", arrow_schema)]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i64,
pub name: String,
#[sea_orm(column_type = "Decimal(Some((20, 4)))")]
pub amount: Decimal,
}