Skip to content

Commit 79b17db

Browse files
committed
update hint
1 parent 9e00538 commit 79b17db

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/Very/Database/PDOConnection.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,9 @@ class PDOConnection
7272

7373
protected $forcePrefix = "";
7474

75-
public function forceMaster()
75+
public function hint($hint)
7676
{
77-
$this->forcePrefix = "/*+TDDL:master()*/";
78-
}
79-
80-
public function forceSlave()
81-
{
82-
$this->forcePrefix = "/*+TDDL:slave()*/";
77+
$this->forcePrefix = $hint;
8378
}
8479

8580
public function connect($dsn, $username, $password, $options = array())

0 commit comments

Comments
 (0)