hiblaphp / sql
SQL client contracts for Hibla sql database libraries
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/hiblaphp/sql
Requires
- php: ^8.3
- hiblaphp/promise: *
Requires (Dev)
- laravel/pint: ^1.0
- phpstan/phpstan: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
README
Common SQL contracts and utilities for Hibla database clients.
Overview
Hibla\Sql is a foundational package that provides standardized interfaces, exceptions, and utilities for building asynchronous SQL database clients in the Hibla ecosystem. It establishes a common contract that enables interchangeable database implementations while maintaining type safety and consistent developer experience.
Features
- Unified Interface: Common
SqlClientInterfacefor all database clients (MySQL, PostgreSQL, etc.) - Type-Safe Results: Generic
Resultinterface for query results with full metadata - Transaction Support: Standardized transaction isolation levels and interfaces
- Exception Hierarchy: Comprehensive exception types for robust error handling
- Promise-Based: Built on
Hibla\Promisefor fully asynchronous operations - Connection Pooling: Contracts for efficient connection pool management
Installation
composer require hiblaphp/sql