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

FreeBSD Manual Pages

  
 
  

home | help
Teng::Plugin::FindOrCrUser(Contributed Perl DocumTeng::Plugin::FindOrCreate(3)

NAME
       Teng::Plugin::FindOrCreate - provide find_or_create method for your
       Teng class.

NAME
	   package MyDB;
	   use parent qw/Teng/;
	   __PACKAGE__->load_plugin('FindOrCreate');

	   package main;
	   my $db = MyDB->new(...);
	   my $row = $db->find_or_create('user',{name => 'lestrrat'});

DESCRIPTION
       This plugin provides find_or_create method.

METHODS
       $row = $db->find_or_create($table[, \%args]])
	   $table table	name for counting

	   \%args : HashRef for	row data.

perl v5.24.1			  2017-07-03	 Teng::Plugin::FindOrCreate(3)

NAME | NAME | DESCRIPTION | METHODS

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Teng::Plugin::FindOrCreate&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help