TextQL: Execute SQL Against CSV or TSV
Yawn.  We've had this in Perl for <i>decades</i> using the DBI Shell (dibsh).  DBI is a common database interface.  To connect to a data source, one uses an appropriate driver (by convention, in the DBD name space, such as DBD::Pg or DBD::MySQL) to get a db handle that can run SQL commands.  There are a lot of drivers for things like CSV files, in memory database, etc.<p>Plus you can access all this programmatically and not just through the dbish command.  Since this is a central part of Perl infrastructure, there are a ton of tools that extend the DBI, from a variety of ORMs like DBIx::Class, to data export and even DDL delta management.<p>Generalized Database Interface: <a href="https://metacpan.org/pod/DBI" rel="nofollow">https://metacpan.org/pod/DBI</a>
DBI Shell program: <a href="https://metacpan.org/pod/DBI::Shell" rel="nofollow">https://metacpan.org/pod/DBI::Shell</a>
CSV driver: <a href="https://metacpan.org/pod/DBD::CSV" rel="nofollow">https://metacpan.org/pod/DBD::CSV</a>