3 个仓库
Specialized converters for translating database binary representations into language-native objects.
Distinct from Binary Data Formats: Focuses on database-to-application type conversion rather than general serialization formats like BSON.
Explore 3 awesome GitHub repositories matching data & databases · Binary Type Codecs. Refine with filters or upvote what's useful.
asyncpg is an asynchronous database driver and binary protocol client for PostgreSQL. It provides a non-blocking interface for executing SQL statements, streaming result sets, and managing data transfer between an application and a PostgreSQL database. The driver implements the PostgreSQL binary protocol directly to facilitate efficient data transfer and type conversion. It includes a connection pool to maintain and reuse open database connections, reducing the latency associated with repeated handshakes. The project covers a broad range of database integration capabilities, including atomic
Uses binary-format codecs to convert database types to Python objects, reducing parsing overhead.
MessagePack-CSharp is a high-performance binary serializer for .NET that converts C# objects to and from the compact MessagePack format. It uses compile-time source generation to produce AOT-safe formatters and resolvers, eliminating runtime reflection and enabling ahead-of-time compilation scenarios. The serializer encodes object fields as integer indices instead of string keys, producing compact binary output with deterministic field ordering, and provides stack-allocated reader and writer structs for direct encoding and decoding of MessagePack primitives without heap allocations. The libra
Embeds full .NET type names into serialized blobs for type-argument-free deserialization.
pgx 是一个用于使用 Rust 语言开发高性能 PostgreSQL 扩展的框架和工具套件。它提供了一个底层 API 包装器,用于与内部数据库内存上下文、日志系统和核心执行 API 进行交互,从而能够直接在数据库引擎内实现自定义的数据库功能和逻辑。 该项目的特色在于其专用的构建工具和命令行接口,用于管理从环境初始化到二进制打包的扩展开发生命周期。它包含一个类型映射器,可将语言结构转换为数据库复合类型,并自动生成相应的 SQL 模式定义。 该框架涵盖了广泛的功能面,包括用户定义函数映射、二进制协议集成,以及多版本目标支持,以确保跨不同数据库版本的兼容性。它还提供了专门的内存管理包装器来处理指针并防止数据库环境中的内存泄漏。
Implements specialized binary codecs for translating PostgreSQL internal binary representations into native Rust objects.