INNER CODE UNIT · Rust

as_any

splitgraph/seafowl · clade/src/lib.rs:15

        fn as_any(&self) -> Any {
            Any {
                type_url: InlineMetastoreCommandStatementQuery::type_url().to_string(),
                value: self.encode_to_vec().into(),
            }
        }
    }
}

pub mod sync {
    use arrow_flight::sql::{Any, ProstMessageExt};
    use prost::Message;

    tonic::include_proto!("clade.sync");

    // We need this since the native arrow-flight `do_put` mechanism relies on
    // decoding the command into `Any` prior to running it:
    // https://github.com/apache/arrow-rs/blob/a61f1dc8ea132add731e4426e11d341a1de5ca92/arrow-flight/src/sql/server.rs#L705-L706

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…