pub struct OpenOptions {Show 31 fields
pub delimiter: Option<u8>,
pub has_header: Option<bool>,
pub skip_lines: Option<usize>,
pub skip_rows: Option<usize>,
pub skip_tail_rows: Option<usize>,
pub compression: Option<CompressionFormat>,
pub format: Option<FileFormat>,
pub pages_lookahead: Option<usize>,
pub pages_lookback: Option<usize>,
pub max_buffered_rows: Option<usize>,
pub max_buffered_mb: Option<usize>,
pub row_numbers: bool,
pub row_start_index: usize,
pub hive: bool,
pub single_spine_schema: bool,
pub parse_dates: bool,
pub parse_strings: Option<ParseStringsTarget>,
pub parse_strings_sample_rows: usize,
pub decompress_in_memory: bool,
pub temp_dir: Option<PathBuf>,
pub excel_sheet: Option<String>,
pub s3_endpoint_url_override: Option<String>,
pub s3_access_key_id_override: Option<String>,
pub s3_secret_access_key_override: Option<String>,
pub s3_region_override: Option<String>,
pub polars_streaming: bool,
pub workaround_pivot_date_index: bool,
pub null_values: Option<Vec<String>>,
pub infer_schema_length: Option<usize>,
pub ignore_errors: bool,
pub debug: bool,
}Fields§
§delimiter: Option<u8>§has_header: Option<bool>§skip_lines: Option<usize>§skip_rows: Option<usize>§skip_tail_rows: Option<usize>Skip this many rows at the end of the file (e.g. vendor footer or trailing garbage). Applied after load for CSV.
compression: Option<CompressionFormat>§format: Option<FileFormat>When set, bypass extension-based format detection and use this format (e.g. for URLs or temp files without extension).
pages_lookahead: Option<usize>§pages_lookback: Option<usize>§max_buffered_rows: Option<usize>§max_buffered_mb: Option<usize>§row_numbers: bool§row_start_index: usize§hive: boolWhen true, use hive load path for directory/glob; single file uses normal load.
single_spine_schema: boolWhen true (default), infer Hive/partitioned Parquet schema from one file for faster “Caching schema”. When false, use Polars collect_schema().
parse_dates: boolWhen true, CSV reader tries to parse string columns as dates (e.g. YYYY-MM-DD, ISO datetime).
parse_strings: Option<ParseStringsTarget>When set, trim and parse CSV string columns: None = off, Some(true) = all columns, Some(cols) = those columns only.
parse_strings_sample_rows: usizeSample size (rows) for inferring types when parse_strings is enabled; single file or multiple/partitioned.
decompress_in_memory: boolWhen true, decompress compressed CSV into memory (eager read). When false (default), decompress to a temp file and use lazy scan.
temp_dir: Option<PathBuf>Directory for decompression temp files. None = system default (e.g. TMPDIR).
excel_sheet: Option<String>Excel sheet: 0-based index or sheet name (CLI only).
s3_endpoint_url_override: Option<String>S3/compatible overrides (env + CLI). Take precedence over config when building CloudOptions.
s3_access_key_id_override: Option<String>§s3_secret_access_key_override: Option<String>§s3_region_override: Option<String>§polars_streaming: boolWhen true, use Polars streaming engine for LazyFrame collect when the streaming feature is enabled.
workaround_pivot_date_index: boolWhen true, cast Date/Datetime pivot index columns to Int32 before pivot to avoid Polars 0.52 panic.
null_values: Option<Vec<String>>Null value specs for CSV: global strings and/or “COL=VAL” for per-column. Empty = use Polars default.
infer_schema_length: Option<usize>Number of rows to use when inferring CSV schema. None = Polars default (100). Larger values reduce risk of inferring wrong type (e.g. int then N/A).
ignore_errors: boolWhen true, CSV reader ignores parse errors and continues with the next batch.
debug: boolWhen true, show the debug overlay (session info, performance, query, etc.).
Implementations§
Source§impl OpenOptions
impl OpenOptions
Source§impl OpenOptions
impl OpenOptions
pub fn with_skip_lines(self, skip_lines: usize) -> Self
pub fn with_skip_rows(self, skip_rows: usize) -> Self
pub fn with_delimiter(self, delimiter: u8) -> Self
pub fn with_has_header(self, has_header: bool) -> Self
pub fn with_compression(self, compression: CompressionFormat) -> Self
pub fn with_workaround_pivot_date_index( self, workaround_pivot_date_index: bool, ) -> Self
Sourcepub fn csv_try_parse_dates(&self) -> bool
pub fn csv_try_parse_dates(&self) -> bool
When loading CSV: use Polars try_parse_dates only if parse_strings is not set. When parse_strings is set we do our own date parsing (with strict: false), so we disable Polars’ try_parse_dates to avoid “could not find an appropriate format” errors.
Source§impl OpenOptions
impl OpenOptions
Sourcepub fn from_args_and_config(args: &Args, config: &AppConfig) -> Self
pub fn from_args_and_config(args: &Args, config: &AppConfig) -> Self
Create OpenOptions from CLI args and config, with CLI args taking precedence
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for OpenOptions
impl Default for OpenOptions
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin for OpenOptions
impl UnwindSafe for OpenOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Key for Twhere
T: Clone,
impl<T> Key for Twhere
T: Clone,
Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read more