HEX
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: u103727277 (3416564)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: //kunden/lib/susshi/exec/dbsize
#!/usr/bin/perl

use warnings;
use strict;

use lib '/usr/lib/susshi/exec';
use Susshi;

my $susshi = Susshi->new( -read_input => 1 );
my $db     = $susshi->get_database( 'database', -mandatory => 1 );
my ($size, $tables) = $db->get_tables();
info("$db->{databasename}.$db->{tablefilter}%: $size");

send_json_output ( { size => $size } );