Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * 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);
 }