1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
use crate::error::ArrowError;
#[cfg(any(feature = "io_csv_read_async", feature = "io_csv_read"))]
mod read_utils;
#[cfg(any(feature = "io_csv_read_async", feature = "io_csv_read"))]
mod utils;
#[cfg(any(feature = "io_csv_read", feature = "io_csv_write"))]
impl From<csv::Error> for ArrowError {
fn from(error: csv::Error) -> Self {
ArrowError::External("".to_string(), Box::new(error))
}
}
impl From<chrono::ParseError> for ArrowError {
fn from(error: chrono::ParseError) -> Self {
ArrowError::External("".to_string(), Box::new(error))
}
}
#[cfg(feature = "io_csv_read")]
#[cfg_attr(docsrs, doc(cfg(feature = "io_csv_read")))]
pub mod read;
#[cfg(feature = "io_csv_write")]
#[cfg_attr(docsrs, doc(cfg(feature = "io_csv_write")))]
pub mod write;
#[cfg(feature = "io_csv_read_async")]
#[cfg_attr(docsrs, doc(cfg(feature = "io_csv_read_async")))]
pub mod read_async;