6 रिपॉजिटरी
Tools and patterns for associating a single entity with multiple different types of tables using type identifiers.
Distinguishing note: Focuses on flexible, multi-table entity associations rather than standard one-to-one or one-to-many relationships.
Explore 6 awesome GitHub repositories matching data & databases · Polymorphic Data Modeling. Refine with filters or upvote what's useful.
Drizzle ORM is a TypeScript-native database toolkit providing type-safe SQL query building, schema management, and automated migrations across PostgreSQL, MySQL, SQLite, and SingleStore.
Drizzle associates a single entity with multiple different types of tables by using a type identifier and a foreign key to maintain flexible data connections.
Instructor is a framework designed for structured data extraction, validation, and language model integration. It functions as a library that transforms unstructured text into validated, type-safe objects by leveraging schema definitions and model-specific tool-calling capabilities. By acting as a validation middleware, the project ensures that language model outputs strictly conform to defined data structures. The library distinguishes itself through a robust validation-based retry loop that automatically re-submits failed responses with error feedback to iteratively correct schema complianc
Allows the model to return one of several different data structures or a list of mixed types to support flexible, multi-intent interactions.
This project is a framework for the efficient serialization and deserialization of data structures. It provides a unified, macro-based interface that automates the conversion of complex internal objects into standardized formats and reconstructs them from raw input streams or buffers. By leveraging compile-time code generation, the library minimizes manual implementation overhead while ensuring consistent logic across diverse data types. The framework distinguishes itself through a format-agnostic data model and a visitor-based parsing architecture that decouples data structures from specific
Parses input that may arrive as either a simple string or a complex object into a single unified data structure.
Mikro-ORM is a TypeScript-based object-relational mapping system that provides a unified persistence layer for Node.js applications. It translates TypeScript entities into relational or document-based database schemas, supporting a variety of engines including PostgreSQL, MySQL, MariaDB, MS SQL Server, SQLite, and MongoDB. The project implements the data mapper pattern to decouple in-memory domain models from the database persistence layer. It utilizes a unit of work pattern to track entity changes in memory and commit them in a single coordinated database transaction. The library covers com
Supports advanced data modeling including entity inheritance and polymorphic relations.
TypeDB एक दृढ़ता से टाइप किया गया (strongly-typed) ग्राफ़ डेटाबेस और नॉलेज ग्राफ़ प्रबंधन सिस्टम है। यह एक मल्टी-मॉडल डेटा स्टोर के रूप में कार्य करता है जो रिलेशनल, दस्तावेज़ और ग्राफ़ संरचनाओं को एक ही वातावरण में एकीकृत करता है, जो ACID अनुपालन डेटाबेस और घोषणात्मक क्वेरी इंजन दोनों के रूप में कार्य करता है। यह सिस्टम n-ary हाइपरग्राफ़ मॉडलिंग और बहुरूपी (polymorphic) प्रकार पदानुक्रमों के उपयोग के माध्यम से खुद को अलग करता है। यह संरचनात्मक नियमों को लागू करने और डेटा अखंडता को मान्य करने के लिए एक दृढ़ता से टाइप किए गए स्कीमा को नियोजित करता है, जो क्वेरी निष्पादन के दौरान जटिल संबंधों को स्वचालित रूप से हल करने के लिए प्रकार-आधारित बहुरूपी अनुमान और भूमिका-आधारित इंटरफ़ेस बहुरूपता की अनुमति देता है। प्लेटफ़ॉर्म टैबलिंग के माध्यम से पुनरावर्ती संबंधों की गणना, स्नैपशॉट-आइसोलेशन ट्रांजेक्शन और घोषणात्मक डेटा पुनर्प्राप्ति सहित क्षमताओं की एक विस्तृत श्रृंखला को कवर करता है। यह सर्वसम्मति-आधारित क्लस्टर प्रतिकृति, भूमिका-आधारित एक्सेस नियंत्रण और संरचित डेटा पुनर्प्राप्ति के लिए AI एजेंटों के साथ एकीकरण के माध्यम से उच्च उपलब्धता का भी समर्थन करता है। प्रबंधन एक कमांड-लाइन इंटरफ़ेस के माध्यम से समर्थित है, और सिस्टम ग्राफ़ स्कीमा को विज़ुअलाइज़ करने और प्रशासनिक गतिविधि का ऑडिट करने के लिए टूल्स प्रदान करता है।
Supports inserting, updating, and deleting data across multiple types and hierarchies using unified operations.
msgspec is a high-performance data modeling, serialization, and schema validation toolkit for Python. It serves as a type-safe serialization framework that integrates schema enforcement and data parsing into a single pass, functioning as both a data serialization library and a schema validation system based on standard Python type annotations. The project distinguishes itself through high-performance structural primitives, including compilation-based routine generation and zero-copy buffer parsing. It optimizes memory usage via garbage collection-aware layouts and reduces processing overhead
Maps input to the correct object representation using tags to distinguish between multiple types in a union.