File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 44
55namespace Bavix \LaravelClickHouse \Database ;
66
7+ use Bavix \LaravelClickHouse \Database \Query \Pdo ;
78use Tinderbox \ClickhouseBuilder \Query \Grammar ;
89use Bavix \LaravelClickHouse \Database \Query \Builder ;
910
1011class Connection extends \Tinderbox \ClickhouseBuilder \Integrations \Laravel \Connection
1112{
13+ /**
14+ * @return Builder|\Tinderbox\ClickhouseBuilder\Integrations\Laravel\Builder
15+ */
1216 public function query ()
1317 {
1418 return new Builder ($ this , new Grammar ());
1519 }
20+
21+ /**
22+ * @inheritDoc
23+ */
24+ public function getPdo ()
25+ {
26+ return app (Pdo::class);
27+ }
1628}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Bavix \LaravelClickHouse \Database \Query ;
4+
5+ class Pdo
6+ {
7+ /**
8+ * @param mixed $binding
9+ * @return mixed
10+ */
11+ public function quote ($ binding )
12+ {
13+ return $ binding ;
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments