Install libparse-dia-sql-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libparse-dia-sql-perl
module for parsing Dia diagram files and generating SQL
Parse::Dia::SQL is a Perl module that parses files created in the Dia diagram creation program, represents it as an internal datastructure, and produces the SQL statements it represents. . This package also provides the 'parsediasql' command-line utility to convert diagrams into SQL. this utility replaces the older tedia2sql program.