HTTP-ClickHouse-Base

 view release on metacpan or  search on metacpan

lib/HTTP/ClickHouse/Base.pm  view on Meta::CPAN

}

sub _init {
    my $self = shift;
    my %_attrs = (
        host        => '127.0.0.1',
        port        => 8123,
        database    => 'default',
        user        => undef,
        password    => undef,
        keep_alive  => 1,
        nb_timeout  => 25,
        debug       => 0
    );
    foreach my $_key ( keys %_attrs ) {
        unless ($self->{$_key}){
            $self->{$_key} = $_attrs{$_key};
        }
    }
}



( run in 0.878 second using v1.01-cache-2.11-cpan-71847e10f99 )