6 个仓库
Algorithms and structural patterns used to programmatically generate complex database or log queries from schemas.
Distinct from Query Optimization Patterns: Focuses on the generation of queries from a schema, whereas Query Optimization Patterns focuses on improving the efficiency of existing queries.
Explore 6 awesome GitHub repositories matching data & databases · Query Generation Patterns. Refine with filters or upvote what's useful.
Sigma is a suite of tools for defining generic log signatures and translating them for multiple backends. It provides a structured way to define malicious behavior and detection logic independently of any specific backend technology, acting as a translation engine that maps generic event fields and correlation logic to the proprietary query languages of security data lakes and SIEM platforms. The project features a plugin-based multi-backend query generator that exports security detections into various database and log management formats. It also includes a threat framework mapping tool that
Constructs complex search strings by iterating through logic operators defined in a standardized rule schema.
sqlboiler is a database-first ORM generator for Go that analyzes an existing database schema to produce strongly typed structures and query helpers. It functions as a schema-driven code generator, transforming database tables and relationships into executable Go source code. The project distinguishes itself through a type-safe query builder that uses chainable modifiers to construct SQL statements, eliminating the need for raw string concatenation. It utilizes customizable text templates to generate source code, allowing for the aliasing of schema entities and the creation of custom templates
Provides a type-safe query builder using a chainable modifier pattern to construct SQL statements without raw strings.
SQLDelight is a Kotlin database library that validates SQL schema, statements, and migrations at compile time, generating type-safe Kotlin query functions from labeled SQL files. It treats SQL as the source of truth for database definitions, catching schema errors during the build process before they reach production. The library supports multiple database dialects including SQLite, MySQL, PostgreSQL, HSQL, and H2, and generates platform-specific code for Android, iOS, JVM, and JavaScript targets. It provides a platform-specific driver abstraction that handles database connectivity difference
Generates typed Kotlin query functions from labeled SQL statements at compile time.
GhostTrack is an open-source intelligence (OSINT) framework that aggregates geographic, network, and social identity information from public data sources. It functions as a digital footprint analyzer, collecting various pieces of publicly available information to build comprehensive profiles of target individuals. The framework combines multiple investigative capabilities into a single tool, including IP address geolocation, phone number intelligence, and social media username discovery. It distributes queries across external data services to maximize coverage and accuracy, resolving IP addre
Converts user-provided identifiers into formatted requests tailored to specific external API requirements.
该项目提供了用于组织 Django 应用程序的架构标准和模式。它定义了一个项目架构指南,重点是通过服务层架构将业务逻辑与视图和模型解耦。 该指南建立了特定的设计模式,包括用于独立业务逻辑函数的服务层,以及用于隔离复杂数据库查询的数据选择器模式。它定义了单用途视图的标准,这些视图将逻辑委托给服务,并利用专用序列化程序进行数据输入和输出。 该框架涵盖了几个更广泛的功能领域,包括用于将环境覆盖与基础设置分离的模块化配置管理、用于领域驱动错误映射的自定义异常层次结构,以及用于协调后台任务和定期调度的系统。它还包括将数据库约束与模型和服务级验证相结合的标准。
Implements a data selector pattern to isolate complex database queries from the API and service layers.
Tortoise ORM is an asynchronous object-relational mapper for Python that mirrors Django's model and queryset API while running on asyncio. It defines database tables as Python classes with typed fields and supports foreign key, many-to-many, and one-to-one relations, providing a chainable query API for filtering, annotating, grouping, and prefetching related objects without blocking the event loop. The ORM includes a built-in migration engine that detects model changes, generates migration files, and applies or reverts schema changes through a command-line tool. It connects to PostgreSQL, MyS
Provides a chainable query builder for filtering, ordering, and aggregating records.