sea_orm/entity/arrow_schema.rs
1/// Apache Arrow schema for an entity.
2///
3/// Derived via `#[derive(DeriveArrowSchema)]`, this lets you exchange model
4/// values with Arrow `RecordBatch`es — see
5/// [`ActiveModelTrait::from_arrow`](crate::ActiveModelTrait::from_arrow) /
6/// [`to_arrow`](crate::ActiveModelTrait::to_arrow). Requires the
7/// `with-arrow` feature.
8pub trait ArrowSchema {
9 /// Arrow schema matching this entity's columns.
10 fn arrow_schema() -> sea_orm_arrow::arrow::datatypes::Schema;
11}