25 repository-uri
Mechanisms for enforcing parent-child integrity through identifier references between database records.
Distinguishing note: Focuses on the implementation of foreign key references and parent-child integrity, distinct from general relationship mapping.
Explore 25 awesome GitHub repositories matching data & databases · Foreign Key Constraints. Refine with filters or upvote what's useful.
Vapor is a comprehensive server-side web framework designed for building scalable, high-performance applications and APIs in Swift. It provides a non-blocking, event-loop-based runtime that manages concurrent task processing, background job queues, and asynchronous request handling. The framework is built around a dependency injection container that manages the lifecycle and resolution of services, configurations, and database connections throughout the request pipeline. The framework distinguishes itself through a protocol-oriented design that emphasizes type safety across all layers of the
Define a parent-child relationship between models by storing a reference to another model's identifier, supporting both required and optional parent associations.
Vitess is a database clustering system for horizontal scaling of MySQL. It functions as a middleware layer that abstracts complex sharding and physical topology, allowing applications to interact with a distributed database environment through a unified interface. By intercepting and routing SQL queries across multiple shards, it enables large-scale data management while maintaining the appearance of a single database instance. The platform distinguishes itself through its ability to perform online schema migrations and distributed transaction coordination without requiring application downti
Maintains relational integrity across distributed database nodes by managing and validating foreign key relationships within the sharding architecture.
Doctrine ORM is a PHP object-relational mapper that connects application objects to relational database tables. It uses the data mapper and identity map patterns to decouple the in-memory object model from the database schema, allowing developers to manage data persistence without writing manual SQL. The project features a dedicated object-oriented query language and programmatic builder for retrieving data based on entities rather than tables. It implements a unit-of-work system to track object changes during a request and synchronize them via atomic transactions. The capability surface inc
Links objects using multiple join columns for composite primary keys.
This project is a Go language driver for the SQLite database. It provides a relational database interface and a Cgo wrapper that connects Go applications to SQLite for persistent local data storage and query execution. The implementation serves as a provider for JSON document storage and local full-text search. It enables the creation, querying, and modification of JSON data and the implementation of searchable indexes for large text datasets directly within the database. The driver supports standard SQL query execution for both file-based and in-memory storage. It includes capabilities for
Enforces parent-child integrity by controlling how foreign key constraints are applied during data operations.
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
Generates dedicated getter methods and mapping logic based on database foreign key constraints to navigate table associations.
jOOQ is a type-safe SQL query builder for Java that generates code from live database schemas, enabling compile-time validation of SQL syntax and data types. Its core identity is built around a fluent DSL that mirrors SQL structure, a code generator that maps tables, views, and routines to Java objects, and a multi-dialect engine that translates the same DSL into vendor-specific SQL for over 30 databases. The project also includes a SQL parser and transformer for refactoring or dialect conversion, reactive stream integration for non-blocking query execution, and a JDBC proxy diagnostics tool f
Compares primary and foreign key columns through generated embeddable records to prevent mismatched key usage.
CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools
Provides a forge method for dropping foreign key constraints from tables.
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
Defines foreign key fields to link models, enabling related queries and prefetching of associated records.
This repository is a curated study resource of interview questions and answers for data science roles. It covers the core domains of machine learning, statistics, Python programming, SQL databases, deep learning, and algorithmic problem solving. The content is organized as static Markdown files with a structured question-and-answer format, making it easy to read and navigate without any server-side processing. The material distinguishes itself by pairing each question with a detailed explanation and often a code example, covering both conceptual knowledge and practical application. Topics ran
Explains primary, foreign, and unique key constraints and compares temporary tables with common table expressions.
ihp este un framework web type-safe și un orchestrator de aplicații full-stack conceput pentru PostgreSQL. Funcționează ca un framework de randare pe partea de server și un ORM type-safe care generează automat tipuri de înregistrări din scheme SQL pentru a asigura validarea interogărilor la momentul compilării. Platforma se distinge prin verificarea rutelor, a interogărilor de bază de date și a template-urilor la compilare pentru a preveni erorile la runtime. Implementează interfețe web în timp real folosind WebSockets pentru sincronizarea instantanee a datelor și utilizează hypermedia condusă de server pentru patch-uri parțiale de DOM. Framework-ul acoperă o gamă largă de capabilități integrate, inclusiv gestionarea identității utilizatorilor cu suport pentru passkey și OAuth, un strat complet de stocare a datelor cu migrări automate și un sistem cuprinzător de randare UI cu template-uri HTML type-safe. Oferă, de asemenea, instrumente încorporate pentru dezvoltarea de API-uri JSON, execuția asincronă a sarcinilor de fundal și integrare financiară pentru gateway-uri de plată. Mediile de producție sunt gestionate prin deployment declarativ NixOS pentru infrastructură reproductibilă.
Allows configuration of database-level delete behaviors to ensure referential integrity and automatic cleanup of related records.
Mathesar is a no-code database manager and PostgreSQL GUI that provides a visual interface for managing relational database structures and records. It functions as a low-code data platform for administering schemas, tables, and relationships without the need to write manual SQL commands. The platform allows for the creation of shareable forms to collect data and the management of file attachments linked directly to database records. It includes a PostgreSQL administration tool for controlling database roles, user permissions, and data validation rules. The system covers relational data model
Enforces referential integrity by managing foreign key constraints between relational database tables.
Goravel este un scaffold de dezvoltare complet și un framework pentru construirea de aplicații web, API-uri REST și servicii gRPC folosind limbajul de programare Go. Implementează o arhitectură model-view-controller și oferă un set de instrumente cuprinzător pentru servere și clienți de tip remote procedure call (RPC) de înaltă performanță. Framework-ul se distinge prin ecosistemul său integrat extins, care include un ORM (object-relational mapper) fluent pentru gestionarea bazelor de date și un toolkit CLI dedicat pentru automatizarea administrativă și scaffolding-ul proiectelor. Dispune de o abstractizare a serviciilor bazată pe drivere, care permite dezvoltatorilor să schimbe backend-urile de stocare, cache și sesiune fără a altera logica aplicației. Platforma acoperă o suprafață largă de capabilități pentru aplicații, inclusiv procesarea asincronă a sarcinilor cu cozi distribuite, gestionarea securizată a identității prin autentificare bazată pe token-uri și un strat robust de securitate cu criptare și control al accesului. Oferă, de asemenea, instrumente pentru localizarea conținutului, randarea de template-uri și o infrastructură de testare automatizată cu dependency mocking.
Supports the definition of primary keys, unique indexes, and foreign keys to enforce data integrity.
supabase-js este o bibliotecă client cuprinzătoare concepută pentru a integra aplicațiile frontend cu un backend-as-a-service găzduit. Oferă o interfață unificată pentru interacțiunea cu o bază de date PostgreSQL, sisteme de gestionare a identității, stocare de obiecte în cloud și sincronizarea datelor în timp real. Biblioteca dispune de un design client izomorf care operează atât în medii de browser, cât și de server. Se distinge printr-o abordare type-safe, utilizând TypeScript pentru a mapa schemele bazei de date direct la definițiile client-side, și utilizează un API bazat pe PostgREST pentru a traduce apelurile JavaScript în cereri RESTful. Clientul acoperă o gamă largă de capabilități, inclusiv autentificarea utilizatorilor prin OAuth, OIDC și passkeys, precum și gestionarea sesiunilor folosind token-uri semnate. Gestionează date binare la scară largă printr-o interfață de stocare compatibilă cu S3 și permite actualizări live ale aplicației prin abonamente bazate pe WebSocket pentru schimbările bazei de date și sincronizarea prezenței. Funcționalitatea suplimentară include invocarea de funcții serverless edge și efectuarea de căutări de similaritate folosind vector embeddings.
Implements foreign key constraints and cascade rules to maintain parent-child data integrity.
TablePro is a cross-platform database management client designed for browsing, querying, and administering both SQL and NoSQL databases. It functions as a unified workspace that integrates a code-centric SQL editor with schema visualization tools, allowing developers to manage complex data models and execute queries across diverse database engines. The application distinguishes itself through an agentic AI integration layer that connects language models directly to database tools, enabling automated query generation, optimization, and error fixing with configurable approval gates. It features
Configures referential relationships between tables including composite keys and cross-schema references.
Graphene-Django este un framework de integrare GraphQL și un mapper de schemă utilizat pentru a construi API-uri tipizate pentru aplicații Django. Funcționează ca un strat API de bază de date care transformă câmpurile și relațiile modelelor Django într-o schemă graf, permițând clienților să solicite date specifice într-un singur apel. Proiectul implementează specificația Relay, oferind instrumente pentru identificarea globală a obiectelor și paginare standardizată bazată pe conexiuni pentru a gestiona seturi mari de date. Se distinge prin maparea modelelor de bază de date, formularelor și serializatoarelor direct în tipuri de obiecte și mutații GraphQL. Framework-ul acoperă o gamă largă de capabilități, inclusiv controlul accesului la nivel de câmp, interceptarea cererilor bazată pe middleware și gestionarea operațiunilor în timp real prin rutare WebSocket. Include, de asemenea, utilitare pentru inspecția performanței SQL și wrapping-ul tranzacțiilor de mutație pentru a asigura integritatea datelor în timpul actualizărilor. Un client de test specializat este furnizat pentru a verifica răspunsurile API și a executa query-uri către endpoint.
Maps foreign keys between database entities to enable nested data retrieval through a graph schema.
tbls este un utilitar de linie de comandă bazat pe Go utilizat pentru documentarea, analizarea și linting-ul schemelor de baze de date relaționale. Acesta funcționează ca un instrument de documentare care generează rapoarte structurate și diagrame entitate-relație în formate Markdown, JSON sau Excel, precum și un instrument de diff pentru scheme pentru identificarea discrepanțelor dintre o bază de date live și documentația sa. Proiectul permite augmentarea schemei și definirea relațiilor virtuale prin fișiere de configurare externe, permițând suprascrieri de metadate și conexiuni între tabele fără a necesita migrarea bazei de date sau constrângeri native. De asemenea, suportă organizarea tabelelor în puncte de vedere bazate pe domeniu pentru a crea perspective curatoriate ale schemei generale. Capabilitățile suplimentare includ capacitatea de a valida structurile bazei de date în raport cu reguli predefinite printr-un linter SQL și măsurarea acoperirii documentației pentru a determina procentul de tabele și coloane descrise. Sistemul utilizează o interfață de driver bazată pe JSON pentru a integra executabile externe pentru suportul diverselor tipuri de baze de date și utilizează șabloane personalizabile pentru generarea documentelor.
Specifies table relationships and foreign key connections via configuration for databases lacking native constraints.
Vue.NetCore este un instrument de scaffolding full-stack care generează automat cod frontend și backend folosind .NET Core și Vue.js pe baza schemelor de baze de date. Funcționează ca un generator de boilerplate CRUD și orchestrator de baze de date care mapează entitățile în logica de business pentru a crea interfețe administrative și endpoint-uri API. Proiectul oferă un scaffold UI multi-platformă, producând cod compatibil pentru web, iOS, Android și mini-programe WeChat. Utilizează un framework web TypeScript cu Vite și folosește SqlSugar pentru a automatiza maparea entităților bazei de date. Sistemul acoperă automatizarea CRUD enterprise, inclusiv generarea de formulare bazate pe date, interfețe de interogare de căutare avansată și relații de tabel master-detail. Include, de asemenea, capabilități pentru dezvoltarea automată a API-urilor și interfețe de import de date Excel.
Automates the generation of code for one-to-one and one-to-many table relationships including data binding.
Gorp is a lightweight object-relational mapper for Go that binds structs to relational database tables. It functions as a relational data mapper and SQL dialect abstraction layer, automating the translation between application data and relational rows. The project provides a translation layer that generates vendor-specific SQL for PostgreSQL, MySQL, SQLite, Oracle, and SQL Server. It distinguishes itself by implementing optimistic locking via version columns to prevent concurrent update conflicts and providing a database schema generator to create tables and indexes from object definitions.
Specifies primary keys and multi-column uniqueness constraints for relational tables.
LazySQL is a terminal user interface database manager and SQL client. It functions as a query runner and connection manager for interacting with SQL databases from the command line. The project features a read-only connection mode that blocks mutation commands to prevent accidental data loss. It supports automated pre-connection tasks, including the execution of shell commands and the establishment of SSH tunnels, and allows for both global and project-specific configuration. The interface provides a tree-based schema browser for navigating tables, a dedicated SQL query editor with tabular r
Enables jumping from a cell value to its referenced record in another table automatically.
Drift is a type-safe SQL persistence library and relational mapper that provides a structured way to map database tables to classes and execute SQL queries with build-time validation. It functions as a type-safe query builder and a wrapper for SQLite and PostgreSQL, eliminating manual result set parsing by binding query outputs to native objects. The project distinguishes itself through a build-time code generation system that produces type-safe APIs and validates raw SQL statements against database versions before execution. It features reactive query streaming, which transforms SQL queries
Enforces parent-child integrity through relational dependencies and configurable update/delete behaviors.