GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Data::Phrasebook::SQL::Query(3) User Contributed Perl Documentation Data::Phrasebook::SQL::Query(3)

Data::Phrasebook::SQL::Query - Query Extension to the SQL/DBI Phrasebook Model.

    my $q = $book->query( 'find_author' );
    my $q = $book->query( 'find_author', 'Dictionary' );

An extension to the SQL class to specifically handle the DBI interface for each query requested.

Not to be accessed directly, but via the parent Data::Phrasebook, by specifying the class as SQL.

Get/set the current "sql" statement, in a form suitable for passing straight to DBI.

Get/set the current statement handle.

Return list of arguments that will be used as bind parameters to any placeholders. Any given arguments will replace the whole list.

Returns list in list context, arrayref in scalar.

As for "args", but regarding the corresponding list of argument names.

The assorted "order_XXX" methods are supported as for "args_XXX".

Get/set the database handle.

Executes the query. Returns the result of "DBI::execute".

Any arguments are given to "order_args" with the return of that method being used as arguments to "DBI::execute". If no arguments, uses those already specified.

Calls "prepare" if necessary.

Given a hash or hashref of keyword to value mappings, organises an array of arguments suitable for use as bind parameters in the order needed by the query itself.

Prepares the query for execution. This method is called implicitly in most cases so you generally don't need to know about it.

Rebinds any bound values. Lets one pass a scalar reference in the arguments to "order_args" and have the bound value update if the original scalar changes.

This method is not needed externally to this class.

Any method not mentioned above is given to the statement handle.

All these delegations will implicitly call "prepare".

Data::Phrasebook, Data::Phrasebook::SQL.

Please see the README file.

  Original author: Iain Campbell Truskett (16.07.1979 - 29.12.2003)
  Maintainer: Barbie <barbie@cpan.org> since January 2004.
  for Miss Barbell Productions <http://www.missbarbell.co.uk>.

  Copyright (C) 2003 Iain Truskett.
  Copyright (C) 2004-2013 Barbie for Miss Barbell Productions.

  This distribution is free software; you can redistribute it and/or
  modify it under the Artistic License v2.
2014-08-20 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.