Name

QBit::Application::Model::DB::clickhouse::st - Class for ClickHouse sth.

Description

Implements sth methods for ClickHouse driver.

Package methods

execute

Arguments:

  • @params - array (parameters to binding). Optional

Return values:

  • $result - perl structure or undef

Example:

$sth = $dbh->prepare('INSERT INTO `state` (`date`, `hits`) VALUES (?, ?)');

my $result = $sth->execute("2017-09-03", 13) or die $dbh->err() . ': ' . $sth->errstr();

fetchall_arrayref

Arguments:

  • $attr - hash ref (attributes). Optional

Return values:

  • $result - perl structure or undef

Example:

my $result = $sth->fetchall_arrayref({});

finish

No arguments.

STH interface. Always returns true