Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:perl:CPAN-H
perl-HTML-FormEngine-DBSQL
perl-HTML-FormEngine-DBSQL.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-HTML-FormEngine-DBSQL.spec of Package perl-HTML-FormEngine-DBSQL
# # spec file for package perl-HTML-FormEngine-DBSQL # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: perl-HTML-FormEngine-DBSQL Version: 1.01 Release: 0 %define cpan_name HTML-FormEngine-DBSQL Summary: Create html/xhtml forms for adding, updating License: CHECK(Artistic-1.0 OR GPL-1.0-or-later) Group: Development/Libraries/Perl Url: https://metacpan.org/release/%{cpan_name} Source0: https://cpan.metacpan.org/authors/id/M/MO/MORNI/%{cpan_name}-%{version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Clone) >= 0.13 BuildRequires: perl(DBI) >= 1.42 BuildRequires: perl(HTML::FormEngine) >= 1 BuildRequires: perl(Hash::Merge) >= 0.07 BuildRequires: perl(Locale::gettext) >= 1.01 Requires: perl(Clone) >= 0.13 Requires: perl(DBI) >= 1.42 Requires: perl(HTML::FormEngine) >= 1 Requires: perl(Hash::Merge) >= 0.07 Requires: perl(Locale::gettext) >= 1.01 %{perl_requires} %description DBSQL.pm is an exentsion of HTML::FormEngine, that means it inherits all functionality from HTML::FormEngine and adds some new features. In web development, form data is mostly used to update a database. For example most guestbooks or any similar webapplication store the entered data in a database. Often very large forms are needed, e.g. when the user should provide his personal data to subscribe to an certain service. In most cases a SQL database is used. If you don't know anything about SQL databases or you're not using such things, this module will hardly help you. But if you do, you'll know that every record, that you want to store in a certain SQL database table, has to have certain fields and these fields must contain data of an certain type (datatype). So the tables structure already defines how a form, that wants to add data to this table, might look like (in case that you don't want to process the whole data before adding it to the table). DBSQL.pm reads out the tables structure and creates a form definition for HTML::FormEngine. Two examples: A field of type boolean will only accept 0 or 1, this is represented in the form as 'Yes' or 'No'. a field of type VARCHAR(30) will accept strings of maximal 30 characters, so it's represented as an one-line-text-input-field in which you can put maximal 30 characters. Of course you can re-adjust the resulting form configuration, but in most cases you don't have to care about it! DBSQL.pm also provides methods for adding and updating records. So you don't have to deal with sql commands. HTML::FormEngine::DBSQL was only tested with *PostgreSQL* so far, but it should also work with other DBMS, like e.g. MySQL. %prep %setup -q -n %{cpan_name}-%{version} find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644 %build perl Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %check make test %install %perl_make_install %perl_process_packlist %perl_gen_filelist %files -f %{name}.files %defattr(-,root,root,755) %doc ChangeLog examples MIGRATING README ToDo %license COPYING %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor