Package perl-SQL-Abstract-Classic: Information

    Source package: perl-SQL-Abstract-Classic
    Version: 1.91-alt2
    Build time:  Jun 26, 2020, 02:58 AM in the task #254048
    Category: Development/Perl
    Report package bug
    License: perl
    Summary: Generate SQL from Perl data structures
    Description: 
    This module was inspired by the excellent the DBIx::Abstract manpage.
    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 the DBIx::Abstract manpage, 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, @bind) = $sql->insert('people', \%data);
    
    Which would give you something like this:
    
        $stmt = "INSERT INTO people
                        (address, city, name, phone, state)
                        VALUES (?, ?, ?, ?, ?)";
        @bind = ('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(@bind);

    List of rpms provided by this srpm:
    perl-SQL-Abstract-Classic (noarch)

    Maintainer: Igor Vlasenko

    List of contributors:
    Igor Vlasenko

      1. perl(Parse/CPAN/Meta.pm)
      2. perl(SQL/Abstract.pm)
      3. perl(Scalar/Util.pm)
      4. perl(Storable.pm)
      5. perl(Test/Deep.pm)
      6. perl(Test/Exception.pm)
      7. perl(Test/More.pm)
      8. perl(Test/Warn.pm)
      9. perl(Text/Balanced.pm)
      10. perl(YAML/Tiny.pm)
      11. perl-devel
      12. perl-podlators
      13. /proc
      14. rpm-build-perl
      15. perl(CPAN.pm)
      16. perl(Exporter.pm)
      17. perl(ExtUtils/CBuilder.pm)
      18. perl(ExtUtils/MakeMaker.pm)
      19. perl(List/Util.pm)
      20. perl(Net/FTP.pm)
      21. perl(MRO/Compat.pm)
      22. perl(JSON.pm)
      23. perl(Module/Build.pm)
      24. perl(LWP/Simple.pm)

    Last changed


    June 25, 2020 Igor Vlasenko 1.91-alt2
    - to Sisyphus as perl-DBIx-Class dep
    Oct. 20, 2019 Igor Vlasenko 1.91-alt1
    - initial import by package builder