format-sql
module to generate SQL from Perl data structures
Install
- All systems
-
curl cmd.cat/format-sql.sh
- Debian
-
apt-get install libsql-abstract-perl
- Ubuntu
-
apt-get install libsql-abstract-perl
- Kali Linux
-
apt-get install libsql-abstract-perl
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install libsql-abstract-perl
- Raspbian
-
apt-get install libsql-abstract-perl
- Dockerfile
- dockerfile.run/format-sql
libsql-abstract-perl
module to generate SQL from Perl data structures
SQL::Abstract is a Perl module that allows developers to generate SQL from Perl data strutures, inspired by DBIx::Abstract. The intent of this module is to provide abstract SQL generation methods, allowing one to generate SQL while retaining complete control over the statement handles. There are many important differences between this module and DBIx::Abstract, especially when it comes to WHERE clauses. Chief among these changes is a new design to make it easier to generate SQL from Perl data structures and hopefully more intuitive. The underlying idea is that this module does what you mean, based on the data structures you provide it; the biggest advantage is that you don't have to modify your code every time your data changes.