code: public function insert(array $values): int
      {
          $values['added%sql'] = 'NOW()';
          $values['hash'] = $this->getHash($values['password']);  // auto hash password
          unset($values['password']);
  
          $res = $this->connection->insert($this->tableIdentity, $values)->execute(Dibi::IDENTIFIER);
          return $res;
      }
docs: Insert.
  
  @param array $values
  @return int
  @throws \Dibi\Exception