12 个仓库
Utilities for parsing and updating embedded SQL queries to ensure compatibility across different database engines.
Distinct from SQL Query Interfaces: Distinct from SQL Query Interfaces: focuses on source code transformation rather than query execution.
Explore 12 awesome GitHub repositories matching data & databases · SQL Converters. Refine with filters or upvote what's useful.
ShardingSphere is a distributed SQL database middleware that provides sharding, read-write splitting, and distributed transaction management for relational databases. It functions as a layer that intercepts SQL queries to distribute data across multiple physical database instances for horizontal scaling. The project is distinguished by its ability to operate as either a standalone transparent database proxy or via direct integration as a JDBC driver. It features a SQL dialect translator that parses queries into abstract syntax trees to convert syntax between different database engines, enabli
Implements AST-based SQL rewriting to transform queries for distributed routing and execution across physical database instances.
This project is a UUID generation library providing a standards-compliant implementation of RFC 4122. It serves as a tool for creating and validating universally unique identifiers across multiple versions to ensure global uniqueness and prevent data collisions. The library supports several generation methods, including random-based entropy, timestamp sequencing, and namespace-based hashing. It also includes utilities for identifier validation, parsing, and converting identifiers between hexadecimal string representations and binary byte arrays. A command line utility is included for the man
Provides internal representation of UUIDs as byte arrays for precise manipulation before string conversion.
The AWS Cloud Development Kit is an infrastructure-as-code framework that enables developers to define and provision cloud resources using familiar programming languages. By utilizing construct-based synthesis, it translates high-level, object-oriented code into declarative templates, allowing for the automated management of complex cloud environments through a centralized, code-driven control plane. The framework distinguishes itself through its ability to model infrastructure as a dependency-aware resource graph, ensuring that components are provisioned and updated in the correct order. It
Parses and updates embedded SQL queries within application code to maintain compatibility after database migrations.
FerretDB is an open-source database emulator and protocol translator that mimics a MongoDB environment to support existing drivers and client tools on a relational backend. It functions as a stateless database proxy that converts binary wire protocol messages into SQL statements, allowing a relational engine to handle document-oriented requests. The project serves as a migration tool for moving applications from MongoDB to PostgreSQL without rewriting queries or changing client drivers. It achieves this by using PostgreSQL as a document store, storing and querying BSON documents through a tra
Converts wire protocol requests into relational queries to store and retrieve data using a SQL backend.
SQLFluff is a multi-dialect SQL linter, formatter, and style guide enforcer. It functions as a parser and analyzer that converts SQL scripts into structured trees to validate syntax, identify logical components, and enforce consistent capitalization, aliasing, and layout conventions across various database dialects. The system is specifically designed to handle templated SQL, providing the ability to analyze, parse, and lint files containing macros or placeholders. It uses dummy-parameter rendering and source mapping to validate the style and correctness of dynamic code before it is rendered
Converts code from format strings into valid SQL to enable analysis for linting errors.
Soar is a suite of specialized tools designed for analyzing MySQL performance, advising on indexing, and optimizing SQL syntax. It functions as a performance analyzer, index advisor, and query optimizer to identify bottlenecks and suggest structural improvements for faster execution. The project distinguishes itself through a system for rewriting SQL statements into optimized equivalent versions using custom heuristic rules and patterns. It also features a dedicated index advisor that evaluates query patterns and database metadata to recommend the creation of new indexes. Its broader capabil
Implements AST-based structural modification of SQL queries to improve execution speed.
pgloader is a command-line tool that automates the migration of data and schema from various source databases and file formats into PostgreSQL. It combines schema discovery, parallel data pipelines, and type casting into a single, declarative workflow, using PostgreSQL's COPY protocol for high-throughput bulk loading. The tool distinguishes itself by compiling a dedicated command language into concurrent reader-writer pipelines that handle schema introspection, data transformation, and error-resilient batch processing. It supports migrating entire databases from MySQL, MS SQL, SQLite, and Pos
Transforms SQL Server uniqueidentifier byte vectors into PostgreSQL UUID strings.
This is an RFC 4122 UUID package for Go that generates, parses, and validates universally unique identifiers. It provides a library for creating UUIDs that conform to standard formatting rules, along with utilities for inspecting UUID properties such as variant, version, and nil status. The package supports DCE 1.1 Security Extension UUID generation and parsing, and includes byte-level UUID construction by directly manipulating 16-byte arrays with version and variant bits. It validates UUID strings against RFC 4122 formatting rules, including hyphens and hexadecimal characters, and can detect
Converts UUID string representations into structured byte arrays for programmatic use.
这是一个用于生成和解析通用唯一标识符 (UUID) 的 Go 库。它提供了一种编程方式来生成唯一标识符,并根据 RFC 4122 行业标准对其进行验证。 该项目专注于确保分布式系统和数据库中的数据唯一性。它包括用于创建符合公认规范的标识符的工具,以及在字符串表示形式和结构化对象之间转换这些标识符的工具。 该库涵盖了数据验证、解析和分布式数据索引功能。它还提供用于应用状态跟踪的实用程序,以维护对象或会话的稳定句柄。
Transforms hexadecimal UUID strings into structured byte arrays with validation for data integrity.
这是一个 PHP 兼容性库,为原生 ctype 扩展提供了 Polyfill。它作为一个可移植性层,实现了缺失的核心语言函数,以确保跨不同服务器环境和 PHP 版本的一致行为。 该库专注于字符类型验证,使用纯 PHP 代码重现原生扩展函数的行为。它使用运行时环境检测来识别原生扩展是否缺失,并将回退实现直接注入全局命名空间,以防止冲突并保持代码的可移植性。
Transforms UUIDs and ULIDs between different bases and versions using reversible masking.
This project is a PHP library designed for parsing, beautifying, and syntax-highlighting SQL queries. It provides a set of utilities to improve the readability of database code, facilitate debugging, and assist in the maintenance of complex query structures. The library distinguishes itself by offering both aesthetic and functional processing capabilities. It can transform raw SQL strings into structured, indented formats for human review, or compress them by removing comments and unnecessary whitespace to optimize them for network transmission and logging. Additionally, it includes a syntax
Strips SQL comments from queries while preserving the original structure for database engine compatibility.
Typeid 是一个用于生成、编码和验证唯一标识符的库,这些标识符结合了人类可读的前缀和可排序、类型安全的后缀。通过将描述性前缀与标准化的二进制到字符串转换相结合,它提供了一种结构化的方法来管理在分布式系统中保持全局唯一且一致的标识符。 该项目通过利用时间排序的位结构和 Crockford Base32 编码来确保标识符既是按时间顺序可排序的又是 URL 安全的,从而脱颖而出。这种格式允许将标准的 128 位标识符转换为紧凑、人类可读的字符串,从而促进不同软件系统和数据库层之间的互操作性。 该工具包包括全面的验证机制以强制执行严格的模式规则(如字符约束和前缀要求),从而防止数据损坏和类型混淆。此外,该项目提供了一个命令行界面,以简化在开发和自动化工作流中这些标识符的生成和解码。
Converts standard 128-bit identifiers into compact, human-readable strings to improve data readability.