DBIO-ClickHouse

 view release on metacpan or  search on metacpan

lib/DBIO/ClickHouse/SQLMaker.pm  view on Meta::CPAN

  ) if defined $opts{mutations_sync} and $opts{mutations_sync} !~ /\A[012]\z/;

  # ClickHouse spells the assignment list without a SET keyword, which is what
  # SQL::Abstract's generic clause renderer would prepend.
  $opts{render_clause}{'update.set'} ||= '_render_update_clause_set';

  return $self->next::method(\%opts);
}


sub update {
  my ($self, $table, $set, $where, $options) = @_;

  $self->_assert_mutation_target(update => $table);

  $self->throw_exception(
    'An UPDATE on ClickHouse renders as ALTER TABLE ... UPDATE col = ..., '
  . 'which has no form without an assignment: update() needs a non-empty '
  . 'hashref of columns to set'
  ) unless ref $set eq 'HASH' and keys %$set;

lib/DBIO/ClickHouse/Storage.pm  view on Meta::CPAN

    . 'NULL without an error. Nothing was sent',
      (defined $table and not ref $table) ? $table : '(statement)',
      $attrs->{dbic_colname},
      $kind eq 'integer' ? 'n integer' : '',
      $attrs->{sqlt_datatype},
    );
  }
}


sub update {
  my $self = shift;
  $self->next::method(@_);
  return -1;
}

sub delete {
  my $self = shift;
  $self->next::method(@_);
  return -1;
}



( run in 0.880 second using v1.01-cache-2.11-cpan-145b269f2f3 )