phpClickHouse

php ClickHouse wrapper

MIT License

Downloads
5.3M
Stars
713
Committers
46

Bot releases are hidden (Show)

phpClickHouse - 1.2.3

Published by isublimity about 6 years ago

2018-08-30 [Release 1.2.3]

  • Escape values in arrays, pull request #87 from simPod/fix-escape
  • fix-bindings: pull request #84 from simPod/fix-bindings
  • Added quotes arount table and column names in the insert wrapper.
  • Docker Compose in tests
phpClickHouse - 1.2.2

Published by isublimity about 6 years ago

  • Connection without port
phpClickHouse - 1.2.1

Published by isublimity over 6 years ago

Release 1.2.1

  • New $client->getServerVersion()
  • Rewrite method $client->ping()
  • Fix include.php - ClickHouseException before exceptions
  • Add CHANGELOG.md
  • New interface ClickHouseException
phpClickHouse - 1.1.2

Published by isublimity over 6 years ago

Bindings wrong work - fix

$keys=[
            'A'=>'{B}',
            'B'=>':C',
            'C'=>123,
            'Z'=>[':C',':B',':C']
        ];
$this->client->selectAsync('{A} :Z', $keys)->sql() // ==   "123 ':C',':B',':C' FORMAT JSON",
phpClickHouse - 1.1.1

Published by isublimity over 6 years ago

Bindings wrong work - fix

$keys=[
            'A'=>'{B}',
            'B'=>':C',
            'C'=>123,
            'Z'=>[':C',':B',':C']
        ];
$this->client->selectAsync('{A} :Z', $keys)->sql() // ==   "123 ':C',':B',':C' FORMAT JSON",
phpClickHouse - 1.1.0

Published by isublimity over 6 years ago

2018-07-02 [Release 1.1.0]

New:

  • $client->getServerUptime() Returns the server's uptime in seconds.
  • $client->getServerSystemSettings() Read system.settings table and return array
  • $client->streamWrite() function
  • $client->streamRead() function

Warning:

  • Now default enableHttpCompression set true
  • Deprecated StreamInsert class

Fix:

  • Fix rawData() result in JSONCompact & JSONEachRow format
  • Fix Statement - unnecessary memory usage
  • Fix support php5.6
phpClickHouse - 1.0.1

Published by isublimity over 6 years ago

1.0.1
Do not convert int parameters in array to string in Bindings pull 67

phpClickHouse - 1.0.0

Published by isublimity over 6 years ago

Use Semantic versioning

phpClickHouse - 0.18.06.19

Published by isublimity over 6 years ago

0.18.06.19

  • Add DateTimeInterface for Bind
  • Fix phpDocs in code
phpClickHouse - 0.18.06.18

Published by isublimity over 6 years ago

0.18.06.18
Try fix problem with php 5.6

phpClickHouse - 0.18.06.17

Published by isublimity over 6 years ago

0.18.06.17 -> PHP 5.6

phpClickHouse - 0.18.05.09

Published by isublimity over 6 years ago

0.18.05.09

WARN!!!

!Move class in namespace!
!Check your code!

Move \ClickHouseDB\WhereInFile to \ClickHouseDB\Query\WhereInFile
Move \ClickHouseDB\QueryException to \ClickHouseDB\Exception\QueryException
Move \ClickHouseDB\DatabaseException to ClickHouseDB\Exception\DatabaseException
Move \ClickHouseDB\FormatLine to \ClickHouseDB\Quote\FormatLine
Move \ClickHouseDB\WriteToFile to ClickHouseDB\Query\WriteToFile
Move \Curler\Request to \ClickHouseDB\Transport\CurlerRequest
Move \Curler\CurlerRolling to \ClickHouseDB\Transport\CurlerRolling
phpClickHouse - 0.17.12.1

Published by isublimity almost 7 years ago

0.17.12.1

phpClickHouse - 0.17.12

Published by isublimity almost 7 years ago

  • progressFunction()
  • Escape values
phpClickHouse - 0.17.11

Published by isublimity almost 7 years ago

0.17.11

phpClickHouse - 0.17.08

Published by isublimity about 7 years ago

See changelog

phpClickHouse - 0.17.02

Published by isublimity over 7 years ago

See readme, change log

New:

  • setConnectTimeOut
  • Delete all migration code from driver
  • Degeneration for Bindings & Conditions
  • Use enableQueryConditions for compatibility
  • setReadOnlyUser
  • truncateTable
phpClickHouse - Delete all migration code from driver

Published by isublimity almost 8 years ago

2016-10-25 Release 0.16.10

fix timeout error and add test
2016-10-23

client->setTimeout($seconds)
cluster->clientLike($cluster,$ip_addr_like)
Delete all migration code from driver, move to https://github.com/smi2/phpMigrationsClickhouse

phpClickHouse - drop Conditions & add cluster

Published by isublimity about 8 years ago

  • Version/Release names: [ zero dot year dot month]
  • Support cluster: new class Cluster and ClusterQuery
  • output_format_write_statistics, for clickhouse version > v1.1.54019-stable
  • WriteToFile in select,selectAsync
  • Degeneration for Bindings & Conditions
  • $db->select(new Query("Select..."));
  • remove findActiveHostAndCheckCluster , clusterHosts , checkServerReplicas
  • Add cleanQueryDegeneration(),addQueryDegeneration()
  • Need $db->enableQueryConditions(); for use Conditions ; default Conditions - disabled;
  • float in CurlerRequest->timeOut(2.5) = 2500 ms
  • tablesSize() - add sizebytes

warn! drop Conditions

see example/exam16_custom_degeneration.php

phpClickHouse - 0.2.0

Published by isublimity about 8 years ago

Package Rankings
Top 0.6% on Packagist.org
Badges
Extracted from project README
Downloads Packagist Licence
Related Projects