Skip to content

Commit 24383b0

Browse files
committed
init cluster
1 parent 560e732 commit 24383b0

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/Query/ClusterQuery.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,20 @@ private function autoSplit($sql)
5959
return $sql;
6060
}
6161

62+
/**
63+
* @param $split_chars
64+
* @return $this
65+
*/
6266
public function setAutoSplitQuery($split_chars)
6367
{
6468
$this->_split_chars=$split_chars;
69+
return $this;
6570
}
71+
72+
/**
73+
* @param $sql
74+
* @return $this
75+
*/
6676
public function addSqlUpdate($sql)
6777
{
6878
$sql=$this->autoSplit($sql);
@@ -80,8 +90,13 @@ public function addSqlUpdate($sql)
8090
{
8191
$this->_sql_up[]=$sql;
8292
}
83-
93+
return $this;
8494
}
95+
96+
/**
97+
* @param $sql
98+
* @return $this
99+
*/
85100
public function addSqlDowngrade($sql)
86101
{
87102
$sql=$this->autoSplit($sql);
@@ -93,6 +108,7 @@ public function addSqlDowngrade($sql)
93108
{
94109
$this->_sql_down[]=$sql;
95110
}
111+
return $this;
96112
}
97113

98114
/**

0 commit comments

Comments
 (0)