Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.322.860 Times

SQL::Preproc 0.10

  Date Added: April 08, 2010  |  Visits: 757

SQL::Preproc

Report Broken Link
Printer Friendly Version


Product Homepage
Download (94 downloads)



SQL::Preproc is a Perl module to embed SQL in your Perl (ala SQL preprocessors). SYNOPSIS use SQL::Preproc subclass => Chart, emit => 1, keepsql => 1, syntax => [ Teradata ], pponly => 1, relax => 1, alias => 1, debug => 1; use DBI; use DBI qw(:sql_types); use SQL::Preproc::ExceptContainer; use DBIx::Chart; ...some code... my ($host, $user, $passwd) = @ARGV; DECLARE CONTEXT $sqlpp_ctxt; CONNECT TO "Teradata:$host" USER $userid IDENTIFIED BY $passwd AS myconn WITH tdat_mode => ANSI; my $more_rows; WHENEVER NOTFOUND { $more_rows = undef } WHENEVER SQLERROR { my ($ctxt, $err, $state, $errmsg) = @_; die $errmsg; } DECLARE CURSOR mycursor AS SELECT * FROM mytable FOR UPDATE; OPEN mycursor; my ($col1, $col2, $col3, $col4); while ($more_rows) { FETCH mycursor INTO :$col1, :$col2, :$col3, :$col4; if ($col1 > $col4) { UPDATE mytable SET col4 = col4 + 100 WHERE CURRENT OF mycursor; } } CLOSE mycursor; # # do a bulkload via array binding # my @col1 = (); my @col2 = (); my @col3 = (); # # load some data into the arrays, then send it to the DBMS # EXEC SQL INSERT INTO sometable VALUES(:@col1, :@col2, :@col3); # # now create a chart, dumping results to @_ # SELECT * FROM mytable RETURNING LINEGRAPH(*), IMAGEMAP WHERE WIDTH=500 AND HEIGHT=500 AND FORMAT=PNG AND LOGO=myimage.png AND X_AXIS=Date AND Y_AXIS=Stock Price AND MAPNAME=stockmap AND SIGNATURE=GOWI Systems, Inc. AND SHOWPOINTS=1 AND POINT=opencircle; open(OUTF, >mychart.png) || die $!; binmode OUTF; print OUTF, $_[0]; close OUTF; open(OUTF, >mychart.map) || die $!; print OUTF, $_[1]; close OUTF; DISCONNECT myconn;.

Requirements: No special requirements
Platforms: Linux
Keyword: Ala Embed In Your Libraries Module Outf Perl Perl Module Preprocessors Programming Sql Sqlpreproc
Users rating: 0/10

License: Freeware Size: 52.22 KB
USER REVIEWS
More Reviews or Write Review


SQL::PREPROC RELATED
Form Processors  -  Menus in your windows app 1.1
Menus in your windows app shows how to implement menus in your Win32 application.
20.48 KB  
Networking  -  ms HTML special Chars in your comments 0.2.2
With msHTMLspecialChars can you see all HTML special chars in your comments. And you see the complete comments in your dashbord. When you actived this plugin can you disabled the default comments widget in your dashbord.Installation : 1. Download...
10 KB  
Installer/Uninstaller Tools  -  EverUpdate SDK Beta
EverUpdate provides a simple component that you embed in your applications to instantly enable robust patch and update management capabilities. Via simple API calls, you can cause your application to check for available patches or updates. You can...
6.83 MB  
Java Based Databases  -  CSV 6.5
Java classes you can use standalone or embed in your own programs to Read, write, align, sort and pack comma, tab and semicolon- separated variable files, commonly known as CSV files. It consists of a 23 Java classes/utilities CSVReader,...
2.37 MB  
Libraries  -  Template::Plugin::ASCIITable 0.1
Template::Plugin::ASCIITable is a Perl module that allows you to use Text::ASCIITable in your templates. SYNOPSIS [% USE ASCIITable %] blah [% ASCIITable.cols(a, b, c); ASCIITable.rows([1,2,3],[one,two,three]); ASCIITable.draw() %] A...
7.17 KB  
Network & Internet  -  Ryans In/Out Board 2.2
Ryans In/Out Board is a perl driven in/out board for small-medium size organisations that needs staff to be aware of other staff whereabouts. (Ryans In/Out Board will work for larger organisations but it may be more cumbersome to use with larger...
18.43 KB  
Libraries  -  SDL_ttf 2.0.8
SDL_ttf is a sample library which allows you to use TrueType fonts in your SDL applications. SDL_ttf library comes with an example program "showfont" which displays an example string for a given TrueType font file. Unpack and build. Run...
23.55 KB  
Shell & Desktop  -  Kolombo 0.2
Kolombo is a superkaramba theme that provide a way to embed an image identified by an url in your widget. The image is fetched periodically, and stored in a configurable size local repository. Optionally the image can be processes before to be...
23.55 KB  
Modules  -  Online status in Signature 1.0.2
With this Mod, you can define a text in your profile for your online- and offlinestatus.These texts will shown in your signature if you use the variable [STATUS] in it.
 
Multimedia  -  In-your-face message greeting for Graphics and Animations 1.1
This script allows you to give your surfers a unique and warm welcome when they enter your site.The idea behind this script is actually quite simple- By using dynamic content and fontsize manipulation, was created a text that appears to "zoom-in"...
102.4 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB