Skip to content

Commit f77df0d

Browse files
authored
add reference to PDO in README (#165)
1 parent 37abaa1 commit f77df0d

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Query Builder for SphinxQL
1010

1111
This is a SphinxQL Query Builder used to work with SphinxQL, a SQL dialect used with the Sphinx search engine and it's fork Manticore. It maps most of the functions listed in the [SphinxQL reference](http://sphinxsearch.com/docs/current.html#SphinxQL-reference) and is generally [faster](http://sphinxsearch.com/blog/2010/04/25/sphinxapi-vs-SphinxQL-benchmark/) than the available Sphinx API.
1212

13-
This Query Builder has no dependencies except PHP 5.6, `\MySQLi` extension, and [Sphinx](http://sphinxsearch.com)/[Manticore](https://manticoresearch.com).
13+
This Query Builder has no dependencies except PHP 5.6, `\MySQLi` extension, `PDO`, and [Sphinx](http://sphinxsearch.com)/[Manticore](https://manticoresearch.com).
1414

1515
### Missing methods?
1616

@@ -73,6 +73,13 @@ $query = (new SphinxQL($conn))->select('column_one', 'colume_two')
7373
$result = $query->execute();
7474
```
7575

76+
### Drivers
77+
78+
We support the following database connection drivers:
79+
80+
* Foolz\SphinxQL\Drivers\Mysqli\Connection
81+
* Foolz\SphinxQL\Drivers\Pdo\Connection
82+
7683
### Connection
7784

7885
* __$conn = new Connection()__
@@ -235,6 +242,7 @@ Will return an array with an `INT` as first member, the number of rows deleted.
235242
```php
236243
<?php
237244
use Foolz\SphinxQL\SphinxQL;
245+
238246
try
239247
{
240248
$result = (new SphinxQL($conn))
@@ -338,6 +346,7 @@ Will return an array with an `INT` as first member, the number of rows deleted.
338346
```php
339347
<?php
340348
use Foolz\SphinxQL\SphinxQL;
349+
341350
$result = (new SphinxQL($this->conn))
342351
->select()
343352
->from('rt')
@@ -403,6 +412,7 @@ The following methods return a prepared `SphinxQL` object. You can also use `->e
403412
```php
404413
<?php
405414
use Foolz\SphinxQL\SphinxQL;
415+
406416
$result = (new SphinxQL($this->conn))
407417
->select()
408418
->from('rt')
@@ -443,6 +453,7 @@ The Percolate class provide a dedicated helper for inserting queries in a `perco
443453
```php
444454
<?php
445455
use Foolz\SphinxQL\Percolate;
456+
446457
$query = (new Percolate($conn))
447458
->insert('full text query terms',false)
448459
->into('pq')

0 commit comments

Comments
 (0)