5 个仓库
Tools that parse, validate, and extract metadata from database queries to ensure syntax correctness and operational efficiency.
Distinguishing note: Focuses on static analysis and metadata extraction of SQL, distinct from runtime execution or database management.
Explore 5 awesome GitHub repositories matching data & databases · Query Analyzers. Refine with filters or upvote what's useful.
TypeORM is an object-relational mapper for TypeScript and JavaScript that bridges the gap between object-oriented application code and relational database tables. It provides a comprehensive data persistence layer that allows developers to define database entities using class decorators or configuration objects, enabling seamless interaction with data through object-oriented patterns. The project distinguishes itself through a flexible architecture that supports both the data mapper and repository patterns, alongside a fluent query builder that translates high-level method calls into platform
TypeORM inspects database execution plans to identify missing indexes and evaluate the efficiency of query execution strategies across various supported database engines.
Druid is a database connection management and monitoring framework designed to maintain persistent, high-performance links between applications and relational databases. It functions as a resource manager that automates the lifecycle of connection pools, reducing the overhead associated with repeatedly opening and closing network connections. The project distinguishes itself through an integrated query analysis engine that decomposes database statements into structured components. This capability enables real-time security auditing, syntax validation, and metadata extraction, allowing for the
The project examines database queries to extract metadata, verify syntax, and perform security audits, ensuring that all interactions with the database remain safe and efficient.
ANTLR 是一个基于语法的代码生成器和多语言解析器生成器,用于设计和实现自定义语言。它作为一个工具包,用于将形式语言定义转换为可执行的源代码,以处理结构化文本或二进制文件,同时提供了一个用于自动构建和遍历层级解析树的框架。 该项目以其能够从单个共享语法定义生成多种目标编程语言的词法分析器和解析器的能力而著称。它支持包含直接左递归的语法,并利用自适应预测来优化解析速度,同时保持灵活性。 该系统涵盖了广泛的能力,包括词法分析、通过谓词评估进行的语义检查以及层级数据管理。它通过基于路径的查询和访问者-监听器遍历模式提供了解析树分析工具,以将语法逻辑与应用程序操作解耦。 命令行实用程序可用于测试语法定义和调试逻辑,并且该工具可以在 Docker 容器中执行以避免本地安装。
Validates input against custom logic and rules during the parsing process to identify non-syntactic errors.
This repository contains the official technical specification for GraphQL. It serves as the formal standard defining the query language, the execution engine, and the schema definition rules required to maintain consistency across different API implementations. The specification establishes a language-agnostic standard for query syntax and semantics, alongside a formal protocol for introspection. It provides the documented algorithms and logic requirements necessary for implementing a consistent server, ensuring that metadata about types and fields can be discovered by automated tools. The p
Specifies the system for analyzing queries against the type system to identify mismatches before execution.
sqlglot is a SQL parser and transpiler that represents queries as abstract syntax trees to enable structural analysis, modification, and semantic transformation. It functions as a dialect translator and query optimizer, converting SQL code between different database engines and simplifying syntax trees through rule-based normalization. The project provides a framework for defining custom SQL dialects by overriding tokenizers, parsers, and generators. It includes a lineage analyzer to track data flow from source tables through complex queries to identify the origin of specific columns. Additi
Resolves semantic context and relationships, such as references within common table expressions.