6 repository-uri
Mechanisms for mapping a single entity to multiple target types through a shared association interface within an ORM.
Distinguishing note: None of the candidates were provided; this is a specific data modeling pattern for ORMs.
Explore 6 awesome GitHub repositories matching data & databases · Polymorphic Associations. Refine with filters or upvote what's useful.
Sequelize is an object-relational mapping library that provides a unified interface for managing relational data through code. By implementing the Active Record pattern, it maps database tables to application objects, allowing developers to perform standard create, read, update, and delete operations using high-level method calls. The library abstracts complex database interactions by translating these calls into optimized, engine-specific SQL statements, ensuring consistent behavior across different database systems. The project distinguishes itself through a comprehensive suite of tools for
Sequelize enables polymorphic associations, allowing a single entity to belong to more than one other type of entity using a shared interface.
SQLAlchemy is a comprehensive Python SQL toolkit and object-relational mapper that provides a full suite of tools for interacting with relational databases. It serves as a foundational layer for database connectivity, offering both a high-level object-oriented interface for data persistence and a programmatic SQL expression language for constructing complex, dialect-agnostic queries. The project distinguishes itself through its sophisticated unit of work persistence, which coordinates atomic transactions and tracks object state changes to minimize redundant database operations. It provides a
Associates multiple parent types with a single child object using polymorphic discriminators or flexible foreign key patterns.
PaperTrail is a Ruby on Rails versioning library and database audit trail system. It tracks changes to database models by capturing historical snapshots of object states and associating every modification with the specific user or process responsible for the update. The project provides a model state reification tool to reconstruct model instances as they existed at a specific point in time and a data recovery framework to restore deleted database records by reifying their last known version. The system covers a broad range of capabilities including version history navigation, changeset-base
Uses polymorphic associations to link a single versions table to multiple different model types.
Acts-as-taggable-on este o bibliotecă de tagging pentru baze de date relaționale, destinată aplicațiilor Ruby on Rails. Oferă un sistem pentru asocierea etichetelor personalizate cu înregistrările din baza de date, facilitând categorizarea și filtrarea conținutului. Biblioteca dispune de un framework de tagging contextual care permite unei singure înregistrări să mențină seturi diferite de etichete pentru scopuri diferite. Include, de asemenea, un sistem de tagging multi-tenant care limitează etichetele la conturi sau grupuri specifice pentru a asigura confidențialitatea datelor. Instrumentul suportă regăsirea înregistrărilor pe baza etichetelor, căutarea prin potriviri exacte sau excluderi și calcularea frecvenței etichetelor în cadrul colecțiilor. Mai mult, permite descoperirea obiectelor conexe pe baza etichetelor partajate și urmărește proprietatea etichetelor pentru a distinge între etichetele globale și cele specifice utilizatorului.
Uses a shared join table with type and ID columns to link tags to any database model.
Twill is a Laravel CMS toolkit and admin panel generator designed for building custom administrative consoles and content management systems. It serves as a headless CMS framework and a toolkit for defining content models and managing structured data through a dedicated administrative interface. The project features a visual block editor that allows publishers to arrange and configure reusable content sections via a drag-and-drop interface. It includes a dedicated digital asset manager for storing, cropping, and optimizing images and files across local or cloud storage, as well as a multiling
Uses polymorphic associations to link media assets across multiple different content types.
Audited is a Ruby on Rails audit log library and change data capture framework. It tracks model changes by recording previous and current attribute values during create, update, and destroy operations to maintain a complete history of database modifications. The system functions as a database versioning tool and user activity tracker. It allows for the retrieval of historical record states by timestamp or index, enables reverting models to previous versions, and associates record modifications with specific user identities and remote IP addresses. The library includes capabilities for sensit
Uses polymorphic associations to link a single audit table to any model within the system.