SQL::Interp converts a list of intermixed SQL fragments and

variable references into a conventional SQL string and list
of bind values suitable for passing onto DBI. This simple
technique creates database calls that are simpler to create
and easier to read, while still giving you full access to
custom SQL.

SQL::Interp properly binds or escapes variables. This recommended
practice safeguards against "SQL injection" attacks. The DBI
documentation has several links on the topic.

Besides the simple techniques shown above, The SQL-Interpolate
distribution includes the optional DBIx::Interp module.

WWW: http://search.cpan.org/dist/SQL-Interp/
This commit is contained in:
Cheng-Lung Sung 2008-01-16 12:42:56 +00:00
parent 3608a296ac
commit 1baf0aca01
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205722
5 changed files with 49 additions and 0 deletions

View File

@ -302,6 +302,7 @@
SUBDIR += p5-Rose-DB-Object
SUBDIR += p5-SQL-Abstract
SUBDIR += p5-SQL-Abstract-Limit
SUBDIR += p5-SQL-Interp
SUBDIR += p5-SQL-ReservedWords
SUBDIR += p5-SQL-Statement
SUBDIR += p5-SQL-Translator

View File

@ -0,0 +1,23 @@
# New ports collection makefile for: SQL-Interp
# Date created: 16 Jan 2008
# Whom: Cheng-Lung Sung <clsung@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= SQL-Interp
PORTVERSION= 1.06
CATEGORIES= databases perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= clsung@FreeBSD.org
COMMENT= Interpolate Perl variables into SQL with DBI
RUN_DEPENDS= p5-DBI>=0:${PORTSDIR}/databases/p5-DBI
PERL_CONFIGURE= yes
MAN3= DBIx::Interp.3 SQL::Interp.3
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (SQL-Interp-1.06.tar.gz) = 3f6921977e49a7e0942c09fa8dda00fe
SHA256 (SQL-Interp-1.06.tar.gz) = 130ef97e309f00d75a057ecb0c4c3ca56ab996b1d763e79921ee7c401bb44cf1
SIZE (SQL-Interp-1.06.tar.gz) = 36211

View File

@ -0,0 +1,15 @@
SQL::Interp converts a list of intermixed SQL fragments and
variable references into a conventional SQL string and list
of bind values suitable for passing onto DBI. This simple
technique creates database calls that are simpler to create
and easier to read, while still giving you full access to
custom SQL.
SQL::Interp properly binds or escapes variables. This recommended
practice safeguards against "SQL injection" attacks. The DBI
documentation has several links on the topic.
Besides the simple techniques shown above, The SQL-Interpolate
distribution includes the optional DBIx::Interp module.
WWW: http://search.cpan.org/dist/SQL-Interp/

View File

@ -0,0 +1,7 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/SQL/Interp/.packlist
%%SITE_PERL%%/DBIx/Interp.pm
%%SITE_PERL%%/SQL/Interp.pm
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/SQL/Interp
@dirrmtry %%SITE_PERL%%/SQL
@dirrmtry %%SITE_PERL%%/DBIx
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/SQL