Download the PHP package crowdstar/vertica-swoole-adapter without Composer
On this page you can find all versions of the php package crowdstar/vertica-swoole-adapter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crowdstar/vertica-swoole-adapter
More information about crowdstar/vertica-swoole-adapter
Files in crowdstar/vertica-swoole-adapter
Package vertica-swoole-adapter
Short Description Provides a Db layer for Swoole-based application to communicate to HP Vertica databases.
License Apache-2.0
Homepage https://www.glu.com
Informations about the package vertica-swoole-adapter
Summary
This library provides a DB layer to communicate to HP Vertica databases for Swoole based applications.
Features supported:
- Connection pool.
- Auto-reconnect.
- Retry with exponential backoff (for failed operations).
- Logging support.
Vertica connections are made through package skatrych/vertica-php-adapter, which is implemented using ODBC. It is not coroutine-friendly, and works in blocking mode only.
This package was derived from our work at Glu Mobile. It has been used in one of our internal microservices talking to Vertica 7.2.0 and 9.3.0 servers, and ran smoothly for months.
Installation
Sample Usage
Following example creates a Vertica connection pool, gets a connection from the pool, makes a database query, then puts the connection back to the pool:
For more examples, please check source code under folder examples/. To run the examples, you will need to run following two commands first to install Composer packages and start Docker containers:
Once done, you can run the example(s) using following command(s):
All versions of vertica-swoole-adapter with dependencies
ext-swoole Version >=4.4
crowdstar/exponential-backoff Version ~3.0.0
skatrych/vertica-php-adapter Version @dev