/**
  * Query constructor.
  * @param TransportInterface $transport
  * @param string $sql
  * @param array $bindings
  */
 public function __construct(TransportInterface $transport, $sql, $bindings = [])
 {
     parent::__construct();
     $this->init($transport, $sql);
     $this->bindParams($bindings);
 }
 /**
  * InsertQuery constructor.
  * @param TransportInterface $transport
  * @param string $table
  * @param array $columns
  * @param array $values
  */
 public function __construct(TransportInterface $transport, $table, array $columns = [], array $values)
 {
     parent::__construct();
     $sql = $this->prepareSql($table, $columns, $values);
     $this->init($transport, $sql);
 }
Esempio n. 3
0
 /**
  * @param Query $query
  *
  * @return array
  *
  */
 protected function prepareQueryGetRequest(Query $query)
 {
     return ['query' => $query->toSql()];
 }