Skip to main content

Module mysql_insert

Module mysql_insert 

Source
Expand description

MySQL INSERT statement row parser.

Parses INSERT INTO … VALUES statements to extract individual rows and optionally extract PK/FK column values for dependency tracking.

Structs§

FkRef
Reference to a specific foreign key in a table
InsertParser
Parser for MySQL INSERT statements
InsertValues
Result of parsing INSERT values for bulk loading
ParsedRow
A parsed row from an INSERT statement

Enums§

ParsedValue
Parsed value from an INSERT statement
PkValue
Primary key value representation supporting common types

Functions§

hash_pk_tuple
Hash a PK tuple into a compact 64-bit hash for memory-efficient storage. Uses AHash for fast, high-quality hashing.
parse_insert_for_bulk
Parse INSERT statement for bulk loading (extracts table, columns, and values)
parse_mysql_insert_rows
Parse all rows from a MySQL INSERT statement
parse_mysql_insert_rows_raw
Parse rows without schema (just raw row extraction)

Type Aliases§

PkHashSet
Compact hash-based set of primary keys for memory efficiency. Uses 64-bit hashes instead of full values - suitable for large datasets where collision risk is acceptable (sampling, validation).
PkSet
Set of primary key values for a table (stores full tuples)
PkTuple
Tuple of PK values for composite primary keys