Skip to content

Commit f379ce0

Browse files
committed
fix telescope
1 parent e30226d commit f379ce0

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

src/Database/Connection.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,25 @@
44

55
namespace Bavix\LaravelClickHouse\Database;
66

7+
use Bavix\LaravelClickHouse\Database\Query\Pdo;
78
use Tinderbox\ClickhouseBuilder\Query\Grammar;
89
use Bavix\LaravelClickHouse\Database\Query\Builder;
910

1011
class 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
}

src/Database/Query/Pdo.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

0 commit comments

Comments
 (0)