Description

This function counts the cPanel account's PostgreSQL® databases.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$count_postgresdb = $cpanel->api1('Postgres','number_of_dbs'); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $count_postgresdb = $cpliveapi->api1('Postgres','number_of_dbs'); # Call the function.

<cpanel Module="Postgres::number_of_dbs()">
cpapi1 --user=username Postgres number_of_dbs

2

Parameters

This function does not accept parameters.

Returns

This function displays a count of the cPanel account's PostgreSQL databases.