src/Table.php
public function insert($data) {
        if ($data instanceof Record) {
            $data = clone $data;
        } else {
            $data = new Record(Utils::toArray($data));
        }
        return $this->getFormat()->insert($data);
    }
public function insert($data) {
        if ($data instanceof Record) {
            $data = clone $data;
        } else {
            $data = new Record(Utils::toArray($data));
        }
        return $this->getFormat()->insert($data);
    }
public function insert ( $ data ) { if ( $ data instanceof Record ) { $ data = clone $ data ; } else { $ data = new Record ( Utils :: toArray ( $ data ) ) ; } return $ this -> getFormat ( ) -> insert ( $ data ) ; }
Adds new record to database
@param \org\majkel\dbase\Record|\Traversable|array $data
@return integer index of new record
@throws Exception
Adds new record to database