Skip to content

Conversation

@cofin
Copy link
Member

@cofin cofin commented Sep 22, 2025

  1. Enhanced Serialization System (sqlspec/_serialization.py)

    • Protocol-based design with extensible serializer system
    • Byte-aware operations with msgspecorjson → stdlib fallback
    • Overloaded functions for type-safe string/bytes output
  2. Centralized Type Conversion (sqlspec/core/type_conversion.py)

    • Universal type detection with pre-compiled regex patterns
    • Performance optimized with quick pre-checks
    • Base classes for database-specific type handling
  3. Database-Specific Enhancements

    • PostgreSQL: Cast-aware parameter preparation for JSON/JSONB
    • DuckDB: Native UUID support integration
    • BigQuery: Enhanced UUID support for standard and ADBC drivers
    • Oracle: Intelligent LOB parameter handling

@cofin cofin merged commit 90c54af into main Sep 23, 2025
25 of 26 checks passed
@cofin cofin deleted the feature/pr1-enhanced-serialization-type-conversion branch September 23, 2025 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants