@@ -14,27 +14,27 @@ class Client
14
14
/**
15
15
* @var Http
16
16
*/
17
- private $ _transport = false ;
17
+ private $ _transport = null ;
18
18
19
19
/**
20
20
* @var string
21
21
*/
22
- private $ _connect_username = false ;
22
+ private $ _connect_username = '' ;
23
23
24
24
/**
25
25
* @var string
26
26
*/
27
- private $ _connect_password = false ;
27
+ private $ _connect_password = '' ;
28
28
29
29
/**
30
30
* @var string
31
31
*/
32
- private $ _connect_host = false ;
32
+ private $ _connect_host = '' ;
33
33
34
34
/**
35
- * @var int
35
+ * @var string
36
36
*/
37
- private $ _connect_port = false ;
37
+ private $ _connect_port = '' ;
38
38
39
39
/**
40
40
* @var bool
@@ -156,7 +156,7 @@ public function enableQueryConditions()
156
156
/**
157
157
* Set connection host
158
158
*
159
- * @param string $host
159
+ * @param string|array $host
160
160
*/
161
161
public function setHost ($ host )
162
162
{
@@ -581,8 +581,8 @@ public function insertAssocBulk($table, array $values)
581
581
* insert TabSeparated files
582
582
*
583
583
* @param string $table_name
584
- * @param $file_names
585
- * @param $columns_array
584
+ * @param string|array $file_names
585
+ * @param array $columns_array
586
586
* @return mixed
587
587
* @throws Exception\TransportException
588
588
*/
@@ -597,7 +597,7 @@ public function insertBatchTSVFiles($table_name, $file_names, $columns_array)
597
597
* @param string $table_name
598
598
* @param string|array $file_names
599
599
* @param array $columns_array
600
- * @param $format string ['TabSeparated','TabSeparatedWithNames','CSV','CSVWithNames']
600
+ * @param string $format ['TabSeparated','TabSeparatedWithNames','CSV','CSVWithNames']
601
601
* @return array
602
602
* @throws Exception\TransportException
603
603
*/
@@ -652,9 +652,9 @@ public function insertBatchFiles($table_name, $file_names, $columns_array,$forma
652
652
/**
653
653
* insert Batch Stream
654
654
*
655
- * @param $table_name
656
- * @param $columns_array
657
- * @param string $format
655
+ * @param string $table_name
656
+ * @param array $columns_array
657
+ * @param string $format ['TabSeparated','TabSeparatedWithNames','CSV','CSVWithNames']
658
658
* @return Transport\CurlerRequest
659
659
*/
660
660
public function insertBatchStream ($ table_name , $ columns_array ,$ format ="CSV " )
@@ -705,8 +705,10 @@ public function databaseSize()
705
705
/**
706
706
* Size of tables
707
707
*
708
- * @param $tableName
708
+ * @param string $tableName
709
709
* @return mixed
710
+ * @throws Exception\TransportException
711
+ * @throws \Exception
710
712
*/
711
713
public function tableSize ($ tableName )
712
714
{
@@ -766,8 +768,8 @@ public function tablesSize($flatList=false)
766
768
/**
767
769
* isExists
768
770
*
769
- * @param $database
770
- * @param $table
771
+ * @param string $database
772
+ * @param string $table
771
773
* @return array
772
774
* @throws Exception\TransportException
773
775
* @throws \Exception
@@ -785,7 +787,7 @@ public function isExists($database,$table)
785
787
/**
786
788
* List of partitions
787
789
*
788
- * @param $table
790
+ * @param string $table
789
791
* @param int $limit
790
792
* @return array
791
793
* @throws Exception\TransportException
@@ -804,9 +806,10 @@ public function partitions($table, $limit = -1)
804
806
/**
805
807
* dropPartition
806
808
*
807
- * @param $dataBaseTableName database_name.table_name
808
- * @param $partition_id
809
+ * @param string $dataBaseTableName database_name.table_name
810
+ * @param string $partition_id
809
811
* @return Statement
812
+ * @throws Exception\TransportException
810
813
*/
811
814
public function dropPartition ($ dataBaseTableName , $ partition_id )
812
815
{
@@ -823,7 +826,7 @@ public function dropPartition($dataBaseTableName, $partition_id)
823
826
/**
824
827
* Truncate ( drop all partitions )
825
828
*
826
- * @param $tableName
829
+ * @param string $tableName
827
830
* @return array
828
831
* @throws Exception\TransportException
829
832
* @throws \Exception
@@ -843,8 +846,8 @@ public function truncateTable($tableName)
843
846
/**
844
847
* dropOldPartitions by day_ago
845
848
*
846
- * @param $table_name
847
- * @param $days_ago
849
+ * @param string $table_name
850
+ * @param int $days_ago
848
851
* @param int $count_partitons_per_one
849
852
* @return array
850
853
* @throws Exception\TransportException
0 commit comments