3 dépôts
Implementations that map database operations to standard language-level SQL interfaces.
Distinct from Interface-to-Implementation Bindings: Distinct from general interface bindings; specifically targets the mapping of DB operations to a standard SQL driver API.
Explore 3 awesome GitHub repositories matching software engineering & architecture · SQL Driver Interfaces. Refine with filters or upvote what's useful.
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
Maps database operations to the Go standard library SQL interface for compatibility with generic database toolkits.
go-sqlmock is a Go library that simulates SQL driver behavior for unit testing by intercepting database calls through the standard database/sql/driver interface, eliminating the need for a real database connection. It provides a comprehensive mocking framework that allows developers to define expectations for SQL operations, including queries, executions, prepared statements, and transaction lifecycles, with precise control over the results and errors returned. The library distinguishes itself through its flexible matching and verification capabilities. It supports regex-based or exact SQL
Intercepts database calls by implementing the database/sql/driver interfaces to simulate SQL driver behavior.
go-mysql est une boîte à outils pour l'intégration de bases de données MySQL, fournissant un pilote client natif et les capacités pour implémenter des serveurs ou proxys compatibles MySQL personnalisés. Il permet aux applications de communiquer avec les serveurs MySQL via des modèles d'interface SQL standard. Le projet fournit un support spécialisé pour la synchronisation de données en temps réel en diffusant des événements de journal binaire (binary log). Cela permet de capturer les changements de base de données et de les pousser vers des magasins de données externes, des moteurs de recherche ou des caches pour maintenir la cohérence. La bibliothèque inclut des outils pour le traitement efficace en mémoire de grands jeux de données, utilisant le streaming de résultats de requêtes et des mécanismes de rappel pour gérer les lignes individuellement. Elle couvre également l'analyse de protocole de bas niveau, le pool de connexions avec état et la logique de réponse aux paquets personnalisée.
Implements standard SQL driver interfaces to ensure compatibility with generic Go database execution environments.