Genezzo::Contrib::Clustered::ModPerlWrap - Mod Perl wrappers for Genezzo


Genezzo-Contrib-Clustered documentation  | view source Contained in the Genezzo-Contrib-Clustered distribution.

Index


NAME

Top

Genezzo::Contrib::Clustered::ModPerlWrap - Mod Perl wrappers for Genezzo

SYNOPSIS

Top

    StartPage();
    Connect("/dev/raw");
    ProcessStmt("insert into t1 values (10, 'test10')");
    ProcessStmt("insert into t1 values (11, 'test11')");
    Commit();
    FinishPage();

or

    StartPage();
    Connect("/dev/raw");
    ProcessStmt("select * from t1");
    FinishPage();

DESCRIPTION

Top

The Apache web server is used to provide multi-user XML over HTTP access to the Clustered Genezzo database. A page containing multiple SQL statements acts much like a stored procedure. The web page parameters are used like stored procedure parameters, and the processing on the page forms the transaction boundary.

Note control flow on page does not continue after errors or FinishPage().

See genezzo_form.pl for examples.

May use "PerlModule ModPerlWrap" in apache2.conf. This preloads this module and the rest of the Genezzo modules so they are (initially) shared between all apache processes, saving memory.

FUNCTIONS

Top

Connect GNZ_HOME

Connects to Clustered Genezzo database with home GNZ_HOME. Only performed once per process.

PrintForm

Prints form which can be used to sent SQL statements to web server.

StartPage

Prints initial HTML and XML at beginning of response.

ProcessStmt STMT

Processes SQL statement. Result rows are wrapped in XML and printed. On execute errors automatically does rollback and ends page processing.

Rollback

Rolls back transaction. Often unnecessary as ProcessStmt execute errors are automatically rolled back.

Commit

Commits transaction.

Finish Page

Prints final closing XML tags and ends page processing. Note control flow does not continue beyond this point.

EXPORT

none

LIMITATIONS

Top

Requires Apache 2 and Perl 5.8.4+. On Apache 1.3 SIGUSR2 delivery is often delayed. Note the standard web server on Mac OS X is Apache 1.3.

This is pre-alpha software; don't use it to store any data you hope to see again!

SEE ALSO

Top

http://www.genezzo.com

http://eric_rollins.home.mindspring.com/genezzo/ClusteredGenezzoDesign.html

http://eric_rollins.home.mindspring.com/genezzo/cluster.html

AUTHOR

Top

Eric Rollins, rollins@acm.org

COPYRIGHT AND LICENSE

Top


Genezzo-Contrib-Clustered documentation  | view source Contained in the Genezzo-Contrib-Clustered distribution.