Download the PHP package ody/database without Composer
On this page you can find all versions of the php package ody/database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package database
ODY database module
⚠️ IMPORTANT: This repository is automatically generated from the ody repo and is read-only.
A high-performance database integration framework for PHP applications leveraging Swoole's coroutines.
Overview
The ODY Database module provides a connection pool implementation that works with popular PHP ORM solutions. It's designed to maximize performance in Swoole environments by efficiently managing database connections across coroutines.
Features
- Connection pooling with Swoole coroutine awareness
- Support for Doctrine ORM, and standalone DBAL
- Automatic connection binding to coroutines
- Built-in connection lifecycle management
- Connection health checks and leak detection
- Configurable pool size and connection settings
Installation
Doctrine ORM
DBAL
Basic Usage
Configuration
Define your database configuration:
Using with Doctrine ORM
Using with Doctrine DBAL
Direct Connection Pool Access
Advanced Configuration
The connection pool can be finely tuned with options for:
- Minimum idle connections
- Idle timeout
- Maximum connection lifetime
- Borrowing timeout
- Connection health checks
- Leak detection threshold
For detailed documentation on advanced configuration and usage, refer to the full documentation.
Performance Benefits
- Connections are reused across requests, eliminating the overhead of establishing new connections
- Automatic binding to coroutines ensures connection safety in concurrent environments
- Connection health checks prevent using broken connections
- Leak detection helps identify and fix connection leaks
- Configurable pool size matches your application needs and server resources
License
This package is licensed under the MIT License.
All versions of database with dependencies
ext-pdo Version *
ext-swoole Version ^6.0
illuminate/database Version ^11.43
doctrine/orm Version ^3.3.0
doctrine/dbal Version ^4.2.0
symfony/cache Version ^v7.2.0
psr/log Version ^3.0
ody/connection-pool Version ^0.2.0