UPD::Serialization
Constants
RFC 5.4.1: Table order for data payload serialization These tables MUST always be serialized in this exact order
Class methods
Compute data hash for a dataset Per RFC Section 5.4 Supports multiple algorithms per RFC Section 9 Appendix A
Compute schema hash Per RFC Section 5.5 Supports multiple algorithms per RFC Section 9 Appendix A
Get table columns from information_schema (robust, handles complex CREATE statements) Per RFC 5.4.3: Columns must be in ordinal_position order
Get WHERE clause for filtering table by dataset Per RFC 5.4.1 Returns tuple of {clause, params} for safe parameterized queries
Normalize SQL statement (remove comments, collapse whitespace)
Serialize a single table for a dataset Returns the canonical byte stream per RFC Section 5.4
Validate table name to prevent SQL injection Table names must only contain alphanumeric characters and underscores