databases/p5-Sort-SQL 0.08p1 OpenBSD
manipulate SQL sort strings
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- databases, devel, perl5
Description
Sort::SQL is so simple it almost doesn't deserve to be on CPAN. But since I kept finding myself copy/pasting this method into multiple places, I finally figured it deserved to live in its own class.
Sort::SQL implements one method: string2array().
Takes a scalar string of the SQL C<ORDER BY> syntax and turns it into an array of key/value pair hashrefs.
This method can be used e.g. in Template Toolkit applications, to create re-sortable table columns.
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | databases/p5-Sort-SQL | 0.08p1 |
| NetBSD | databases/p5-Sort-SQL | 0.08nb17 |
Install
Binary package:
pkg_add p5-Sort-SQL
From the ports tree:
cd /usr/ports/databases/p5-Sort-SQL && make install