1 | <?php |
||
9 | class Connection extends \Illuminate\Database\Connection |
||
10 | { |
||
11 | /** |
||
12 | * The RethinkDB connection handler. |
||
13 | * |
||
14 | * @var r\Connection |
||
15 | */ |
||
16 | protected $connection; |
||
17 | |||
18 | /** |
||
19 | * Create a new database connection instance. |
||
20 | * |
||
21 | * @param array $config |
||
22 | */ |
||
23 | public function __construct(array $config) |
||
41 | |||
42 | /** |
||
43 | * Begin a fluent query against a database table. |
||
44 | * |
||
45 | * @param string $table |
||
46 | * |
||
47 | * @return QueryBuilder |
||
48 | */ |
||
49 | public function table($table) |
||
55 | |||
56 | /** |
||
57 | * Get a RethinkDB connection. |
||
58 | * |
||
59 | * @return \r\Connection |
||
60 | */ |
||
61 | public function getConnection() |
||
65 | |||
66 | /** |
||
67 | * Get the elapsed time since a given starting point. |
||
68 | * |
||
69 | * @param int $start |
||
70 | * |
||
71 | * @return float |
||
72 | */ |
||
73 | public function getElapsedTime($start) |
||
77 | |||
78 | /** |
||
79 | * Get a schema builder instance for the connection. |
||
80 | * |
||
81 | * @return Schema\Builder |
||
82 | */ |
||
83 | public function getSchemaBuilder() |
||
87 | } |
||
88 |