Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SPOPS::Import::DBI::GeUsercContributed)SPOPS::Import::DBI::GenericOperation(3)

NAME
       SPOPS::Import::DBI::GenericOperation - Base class for delete and	update
       import operations

SYNOPSIS
	use base qw( SPOPS::Import::DBI::GenericOperation );

	sub _run_operation {
	    my ( $self,	$op_args ) = @_;
	    ...
	}

DESCRIPTION
       This class provides most	of the functionality necessary to delete and
       remove, including the main method "run()". Subclasses just need to
       override	"_run_operation()".

METHODS
   Subclassing
       _run_operation( \%import_params )

       Subclasses must implement this to perform the actual operation. The
       arguments available in "\%import_params"	are:

       o   db: Database	handle

       o   table: Name of the table

       o   where: WHERE	clause

       o   value: Arrayref of values for use in	the WHERE clause, added	by
	   "add_where_params()"

   Implementations
       add_where_params( @params )

       Bound parameters	for the	WHERE clause. Each will	be bound in turn.

       data_from_file( $filename )

       Runs "raw_data_from_file( $filename )" from SPOPS::Import to read a
       serialized Perl data structure from $filename, then sends the arrayref
       to "assign_data()" and returns the result.

       data_from_fh( $filehandle )

       Runs "raw_data_from_fh( $filename )" from SPOPS::Import to read a
       serialized Perl data structure from $filehandle,	then sends the
       arrayref	to "assign_data()" and returns the result.

       assign_data( \%metadata )

       Assigns the data	'table', 'where' and 'where_params' from "\%metadata"
       to the import object.

       The additional metadata is stored under the 'extra_metadata' property
       of the import object.

COPYRIGHT
       Copyright (c) 2004 intes.net, inc.. All rights reserved.

       This library is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

AUTHORS
       Chris Winters <chris@cwinters.com>

perl v5.32.1			  2004-SPOPS::Import::DBI::GenericOperation(3)

NAME | SYNOPSIS | DESCRIPTION | METHODS | COPYRIGHT | AUTHORS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=SPOPS::Import::DBI::GenericOperation&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help