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
SQLEngine::Record::Extras(3) User Contributed Perl Documentation SQLEngine::Record::Extras(3)

DBIx::SQLEngine::Record::Extras - Provide extra methods

  package My::Record;
  use DBIx::SQLEngine::Record::Class '-isasubclass', 'Extras';
  
  my $sqldb = DBIx::SQLEngine->new( ... );
  My::Record->table( $sqldb->table( 'foo' ) );

This package provides a multiply-composable collection of functionality for Record classes.

Don't use this module directly; instead, pass its name as a trait when you create a new record class. This package provides a multiply-composable collection of functionality for Record classes. It is combined with the base class and other traits by DBIx::SQLEngine::Record::Class.

fetch_records
  $recordset = My::Students->fetch_records( criteria => {status=>'active'} );
    

Fetch all matching records and return them in a RecordSet.

fetch_one
  $dave = My::Students->fetch_one( criteria => { name => 'Dave' } );
    

Fetch a single matching record.

fetch_id
  $prisoner = My::Students->fetch_id( 6 );
    

Fetch a single record based on its primary key.

visit_records
  @results = My::Students->visit_records( \&mysub, criteria=> ... );
    

Calls the provided subroutine on each matching record as it is retrieved. Returns the accumulated results of each subroutine call (in list context).

refetch_record
  $record->refetch_record();
    

Re-retrieve the values for this record from the database based on its primary key.

2004-11-16 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.