mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
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:
parent
3608a296ac
commit
1baf0aca01
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=205722
@ -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
|
||||
|
23
databases/p5-SQL-Interp/Makefile
Normal file
23
databases/p5-SQL-Interp/Makefile
Normal 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>
|
3
databases/p5-SQL-Interp/distinfo
Normal file
3
databases/p5-SQL-Interp/distinfo
Normal 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
|
15
databases/p5-SQL-Interp/pkg-descr
Normal file
15
databases/p5-SQL-Interp/pkg-descr
Normal 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/
|
7
databases/p5-SQL-Interp/pkg-plist
Normal file
7
databases/p5-SQL-Interp/pkg-plist
Normal 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
|
Loading…
Reference in New Issue
Block a user