SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-SQL-Abstract rpm build for : OpenSuSE. For other distributions click perl-SQL-Abstract.

Name : perl-SQL-Abstract
Version : 2.000001 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp156.32.1 Date : 2023-12-08 01:38:06
Group : Unspecified Source RPM : perl-SQL-Abstract-2.000001-lp156.32.1.src.rpm
Size : 0.34 MB
Packager : https://www_suse_com/
Summary : Generate SQL from Perl data structures
Description :
This module was inspired by the excellent DBIx::Abstract. However, in using
that module I found that what I really wanted to do was generate SQL, but
still retain complete control over my statement handles and use the DBI
interface. So, I set out to create an abstract SQL generation module.

While based on the concepts used by DBIx::Abstract, there are several
important differences, especially when it comes to WHERE clauses. I have
modified the concepts used to make the SQL easier to generate from Perl
data structures and, IMO, more intuitive. The underlying idea is for this
module to do what you mean, based on the data structures you provide it.
The big advantage is that you don\'t have to modify your code every time
your data changes, as this module figures it out.

To begin with, an SQL INSERT is as easy as just specifying a hash of
\'key=value\' pairs:

my %data = (
name => \'Jimbo Bobson\',
phone => \'123-456-7890\',
address => \'42 Sister Lane\',
city => \'St. Louis\',
state => \'Louisiana\',
);

The SQL can then be generated with this:

my($stmt, AATTbind) = $sql->insert(\'people\', \\%data);

Which would give you something like this:

$stmt = \"INSERT INTO people
(address, city, name, phone, state)
VALUES (?, ?, ?, ?, ?)\";
AATTbind = (\'42 Sister Lane\', \'St. Louis\', \'Jimbo Bobson\',
\'123-456-7890\', \'Louisiana\');

These are then used directly in your DBI code:

my $sth = $dbh->prepare($stmt);
$sth->execute(AATTbind);

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.6/noarch

Content of RPM  Changelog  Provides Requires

Download
ftp.icm.edu.pl  perl-SQL-Abstract-2.000001-lp156.32.1.noarch.rpm
     

Provides :
perl(DBIx::Class::SQLMaker::Role::SQLA2Passthrough)
perl(DBIx::Class::Storage::Debug::PrettyPrint)
perl(SQL::Abstract)
perl(SQL::Abstract::Formatter)
perl(SQL::Abstract::Parts)
perl(SQL::Abstract::Plugin::BangOverrides)
perl(SQL::Abstract::Plugin::ExtraClauses)
perl(SQL::Abstract::Reference)
perl(SQL::Abstract::Role::Plugin)
perl(SQL::Abstract::Test)
perl(SQL::Abstract::Tree)
perl-SQL-Abstract

Requires :
perl(:MODULE_COMPAT_5.26.1)
perl(Hash::Merge) >= 0.12
perl(MRO::Compat) >= 0.12
perl(Moo) >= 2.000001
perl(Sub::Quote) >= 2.000001
perl(Test::Builder::Module) >= 0.84
perl(Test::Deep) >= 0.101
perl(Text::Balanced) >= 2.00
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/DBIx
/usr/lib/perl5/vendor_perl/5.26.1/DBIx/Class
/usr/lib/perl5/vendor_perl/5.26.1/DBIx/Class/SQLMaker
/usr/lib/perl5/vendor_perl/5.26.1/DBIx/Class/SQLMaker/Role
/usr/lib/perl5/vendor_perl/5.26.1/DBIx/Class/SQLMaker/Role/SQLA2Passthrough.pm
/usr/lib/perl5/vendor_perl/5.26.1/DBIx/Class/Storage
/usr/lib/perl5/vendor_perl/5.26.1/DBIx/Class/Storage/Debug
/usr/lib/perl5/vendor_perl/5.26.1/DBIx/Class/Storage/Debug/PrettyPrint.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Formatter.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Parts.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Plugin
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Plugin/BangOverrides.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Plugin/ExtraClauses.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Reference.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Role
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Role/Plugin.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Test.pm
/usr/lib/perl5/vendor_perl/5.26.1/SQL/Abstract/Tree.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-SQL-Abstract
/usr/share/doc/packages/perl-SQL-Abstract/Changes
/usr/share/doc/packages/perl-SQL-Abstract/README
/usr/share/doc/packages/perl-SQL-Abstract/examples
/usr/share/doc/packages/perl-SQL-Abstract/examples/bangdbic.pl
/usr/share/doc/packages/perl-SQL-Abstract/examples/console.pl
/usr/share/doc/packages/perl-SQL-Abstract/examples/dbic-console.pl
/usr/share/doc/packages/perl-SQL-Abstract/examples/sqla-format
There is 12 files more in these RPM.

 
ICM