Skip to content

Commit

Permalink
Up readme
Browse files Browse the repository at this point in the history
  • Loading branch information
isublimity committed Sep 29, 2020
1 parent 4801b0c commit e44d7f1
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions README.md
Expand Up @@ -42,10 +42,7 @@ $db = new ClickHouseDB\Client(['config_array']);
$db->ping();
```

Last stable version for:
- php 5.6 = `1.1.2`
- php 7.0 = `1.2.4`

Last stable version for php 5.6 = `1.1.2`

[Packagist](https://packagist.org/packages/smi2/phpclickhouse)

Expand Down Expand Up @@ -669,6 +666,26 @@ $r=$client->streamRead($streamRead,'SELECT sin(number) as sin,cos(number) as cos

$db->insertAssocBulk([$oneRow, $oneRow, $failRow])
```
### Auth methods

```
AUTH_METHOD_HEADER = 1;
AUTH_METHOD_QUERY_STRING = 2;
AUTH_METHOD_BASIC_AUTH = 3;
```

In config set `auth_method`

```php
$config=[
'host'=>'host.com',
//...
'auth_method'=>1,
];

```


### progressFunction

```php
Expand Down

0 comments on commit e44d7f1

Please sign in to comment.