Skip to main content

Module parser

Module parser 

Source

Re-exports§

pub use mysql_insert::parse_insert_for_bulk;
pub use mysql_insert::ParsedValue;

Modules§

mysql_insert
MySQL INSERT statement row parser.
postgres_copy
PostgreSQL COPY statement parser.

Structs§

DialectDetectionResult
Result of dialect auto-detection
Parser
ParserLimits
Configurable safety caps on how much a single buffered unit may grow before Parser::visit_events reports an error (rather than silently truncating or buffering without bound). Defaults are generous; they exist to turn a pathological/corrupt input into a diagnosable error instead of an OOM.

Enums§

ContentFilter
Content filter mode for splitting
DialectConfidence
Confidence level of dialect detection
ParserEvent
A single streaming event emitted by Parser::visit_events.
RowFlow
Control-flow signal returned by row/event visitors.
SqlDialect
SQL dialect for parser behavior
StatementType

Constants§

MEDIUM_BUFFER_SIZE
SMALL_BUFFER_SIZE

Functions§

detect_dialect
Detect SQL dialect from file header content. Reads up to 8KB and looks for dialect-specific markers.
detect_dialect_from_file
Detect dialect from a file, reading its first 8KB. Goes through crate::splitter::open_input so compressed and zipped inputs are transparently decoded before sniffing — without that, detection would see raw compressed bytes instead of SQL text.
determine_buffer_size