original_string: public function insert(string $from, array $data, array $options = [])
      {
          if (!$data) {
              throw new \RuntimeException('The data inserted into the database cannot be empty');
          }
  
          list($statement, $bindings) = $this->compileInsert($from, $data);
  
          if (isset($options['dumpSql'])) {
              return [$statement, $bindings];
          }
  
          $this->fetchAffected($statement, $bindings);
  
          // 'sequence' For special driver, like PgSQL
          return isset($options['sequence']) ? $this->lastInsertId($options['sequence']) : $this->lastInsertId();
      }
code: public function insert(string $from, array $data, array $options = [])
      {
          if (!$data) {
              throw new \RuntimeException('The data inserted into the database cannot be empty');
          }
  
          list($statement, $bindings) = $this->compileInsert($from, $data);
  
          if (isset($options['dumpSql'])) {
              return [$statement, $bindings];
          }
  
          $this->fetchAffected($statement, $bindings);
  
          // 'sequence' For special driver, like PgSQL
          return isset($options['sequence']) ? $this->lastInsertId($options['sequence']) : $this->lastInsertId();
      }
code_tokens: public function insert ( string $ from , array $ data , array $ options = [ ] ) { if ( ! $ data ) { throw new \ RuntimeException ( 'The data inserted into the database cannot be empty' ) ; } list ( $ statement , $ bindings ) = $ this -> compileInsert ( $ from , $ data ) ; if ( isset ( $ options [ 'dumpSql' ] ) ) { return [ $ statement , $ bindings ] ; } $ this -> fetchAffected ( $ statement , $ bindings ) ; // 'sequence' For special driver, like PgSQL return isset ( $ options [ 'sequence' ] ) ? $ this -> lastInsertId ( $ options [ 'sequence' ] ) : $ this -> lastInsertId ( ) ; }
docstring: Run a statement for insert a row
  @param  string $from
  @param  array $data <column => value>
  @param  array $options
  @return int|array
  @throws \RuntimeException
docstring_tokens: Run a statement for insert a row