guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

13/17: gnu: Add perl-sql-abstract-classic.


From: guix-commits
Subject: 13/17: gnu: Add perl-sql-abstract-classic.
Date: Mon, 29 Jun 2020 10:46:37 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 5d01aeba9499ec0439ccfcbcac969899c5c05711
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Mon Jun 29 13:40:17 2020 +0200

    gnu: Add perl-sql-abstract-classic.
    
    * gnu/packages/databases.scm (perl-sql-abstract-classic): New public 
variable.
---
 gnu/packages/databases.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index e2eb0f3..353cd98 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -1782,6 +1782,42 @@ structures you provide it, so that you don't have to 
modify your code every
 time your data changes.")
     (license license:perl-license)))
 
+(define-public perl-sql-abstract-classic
+  (package
+    (name "perl-sql-abstract-classic")
+    (version "1.91")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://cpan/authors/id/R/RI/RIBASUSHI/"
+                           "SQL-Abstract-Classic-" version ".tar.gz"))
+       (sha256
+        (base32 "0a7g13hs3kdxrjn43sfli09mgsi9d6w0dfw6hlk268av17yisgaf"))))
+    (build-system perl-build-system)
+    (native-inputs
+     `(("perl-test-deep" ,perl-test-deep)
+       ("perl-test-exception" ,perl-test-exception)
+       ("perl-test-warn" ,perl-test-warn)))
+    (propagated-inputs
+     `(("perl-mro-compat" ,perl-mro-compat)
+       ("perl-sql-abstract" ,perl-sql-abstract)))
+    (home-page "https://metacpan.org/release/SQL-Abstract-Classic";)
+    (synopsis "Generate SQL from Perl data structures")
+    (description
+     "This module is nearly identical to @code{SQL::Abstract} 1.81, and exists
+to preserve the ability of users to opt into the new way of doing things in
+later versions according to their own schedules.
+
+It is an abstract SQL generation module based on the concepts used by
+@code{DBIx::Abstract}, with several important differences, especially when it
+comes to @code{WHERE} clauses.  These concepts were modified to make the SQL
+easier to generate from Perl data structures.
+
+The underlying idea is for this module to do what you mean, based on the data
+structures you provide it.  You shouldn't have to modify your code every time
+your data changes, as this module figures it out.")
+    (license license:perl-license)))
+
 (define-public perl-sql-splitstatement
   (package
     (name "perl-sql-splitstatement")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]