5 Repos
Tools for synchronizing application model state with database records.
Distinguishing note: Distinct from existing database management: focuses on the synchronization of object state to persistent storage.
Explore 5 awesome GitHub repositories matching data & databases · Model Persistence. Refine with filters or upvote what's useful.
This project is a type-safe database toolkit and object-relational mapper designed to enforce structural consistency between database schemas and application code. By leveraging compile-time validation, it ensures that SQL queries and data structures remain synchronized, preventing common errors before the application executes. It provides a comprehensive framework for relational data modeling, allowing developers to define table associations and map database results directly into strongly-typed language objects. The library distinguishes itself through its focus on compile-time safety and au
Saves the state of identified records directly to the database by synchronizing fields with table rows.
Mantle is a framework for mapping raw data structures and JSON into typed model objects for Cocoa and Cocoa Touch applications. It serves as a data serialization engine and JSON data mapper that transforms dictionaries and arrays into structured model objects. The framework distinguishes itself through an Objective-C persistence layer that manages model disk archiving via keyed archivers. It includes specialized logic for model version management, allowing outdated archived data structures to be upgraded to match current schemas during deserialization. The project covers a broad range of dat
Saves model objects to persistent storage using keyed archivers for later retrieval.
GoJS is a JavaScript diagramming library and canvas-based visualization engine used to build interactive flowcharts, organizational charts, and network diagrams. It functions as a data-driven framework that binds JavaScript data models to visual elements, enabling bidirectional synchronization between the underlying data and the graphical representation. The library features a comprehensive graph layout engine capable of automatically arranging nodes into trees, grids, circles, or force-directed layouts. It distinguishes itself through a template-based system for generating visual parts and a
Saves and loads diagram state as JSON-formatted text for persistence and restoration.
Bun ist ein typsicherer Object-Relational-Mapper für Go, der SQL-first-Abfragekonstruktion und Result-Mapping priorisiert. Er fungiert als programmierbarer SQL-Abfrage-Builder, Datenbank-Verbindungsmanager und Tool zur Abbildung von Datenbanktabellen auf Go-Structs. Das Projekt zeichnet sich durch ein Multi-Dialekt-SQL-Unterstützungssystem aus, das es einer einzigen Codebasis ermöglicht, über eine konsistente Schnittstelle mit verschiedenen Datenbank-Engines zu interagieren. Es enthält ein integriertes Datenbank-Observability-Tool für Abfrage-Interzeption, verteiltes Tracing und Logging sowie ein Schema-Migrations-Tool zur Versionierung struktureller Änderungen. Die Bibliothek deckt ein breites Spektrum an Datenoperationen ab, einschließlich Bulk-Verarbeitung, Upserts, Soft-Deletes und der Verwaltung relationaler Daten wie polymorpher Assoziationen. Sie bietet Funktionen für fortgeschrittene SQL-Analysen unter Verwendung von Common Table Expressions und Window-Funktionen, neben atomarem Transaktionsmanagement und Connection-Pooling. Das Schema-Management wird über eine Kommandozeilenschnittstelle zur Anwendung versionierter Migrationsskripte unterstützt.
Updates specific fields on a model immediately before it is inserted or updated in the database.
Dieses Projekt ist ein Datenbank-Toolkit für Go, das Schema-zu-Objekt-Mapping, flüssige Abfragekonstruktion (Fluent Query Construction) und automatisierte Codegenerierung bietet. Es fungiert als Framework für typsicheren Datenbankzugriff und ermöglicht Entwicklern die Interaktion mit relationalen Datenbanken durch die Generierung von Modellen und Interfaces direkt aus bestehenden Datenbankschemata. Das Toolkit zeichnet sich durch einen Workflow aus, der handgeschriebene SQL-Dateien parst, um typsichere Funktionen zu generieren, was die Integration von benutzerdefiniertem SQL bei gleichzeitiger Beibehaltung konsistenter Ergebnis-Mappings ermöglicht. Es unterstützt modulare Anpassungen durch eine Plugin-basierte Architektur und nutzt SQL-Kommentar-basierte Metadaten, um die Struktur des generierten Codes zu steuern. Zudem vereinfacht es die Entwicklung durch die automatische Generierung von Testdaten-Factories, um das Setup von Unit- und Integrationstests zu optimieren. Über die Kern-Generierung hinaus bietet das Toolkit eine umfassende Suite zur Verwaltung des gesamten Lebenszyklus von Datenbankinteraktionen. Dies umfasst flüssiges Query-Building über mehrere Dialekte hinweg, automatisierte Parameter-Sanitisierung zur Vermeidung von SQL-Injection und relationales Mapping, das flache Abfrageergebnisse in verschachtelte Objektstrukturen transformiert. Es bietet zudem Lifecycle-Hooks zur Ausführung benutzerdefinierter Logik während Datenbankoperationen und unterstützt inkrementelle Integration, was eine teilweise Einführung ermöglicht, ohne eine vollständige Systemmigration zu erfordern.
Inserts generated model instances into the database while automatically handling required relationships to ensure data integrity.