HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
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 } );