Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tangram::cursor(3pm) [debian man page]

Tangram::Cursor(3pm)					User Contributed Perl Documentation				      Tangram::Cursor(3pm)

NAME
Tangram::Cursor - traverse a result set SYNOPSIS
$cursor = $storage->cursor($remote, $filter); while (my $obj = $cursor->current()) { # process $obj $cursor->next(); } $cursor->execute(); while (my $obj = $cursor->current()) { # process $obj $cursor->next(); } DESCRIPTION
A Cursor makes it possible to iterate over a result set without loading all the objects in memory. See also the "limit" option to the select method of the Tangram::Storage class. INSTANCE METHODS
current $obj = $cursor->current(); Returns the current object, or undef() if the result set is exhausted. next $obj = $cursor->next(); @obj = $cursor->next(); Moves to the next object in the result set, if any. Returns the new current object, or undef() if the result set is exhausted. In list con- text, return all the remaining objects. execute $cursor->execute(); Moves the cursor to the first object in the result set, and return it. Note that preparing Cursors is an expensive operation, you should reuse them if possible. execute() allows just that. execute() may be called several times in a row, or on a Cursor that has just been obtained from a Storage, without ill effects. residue my @vals = $cursor->residue(); Returns the values of the Expr that were passed to the "retrieve" directive of the Storage::select() or Storage::cursor() statement. CURSORS AND CONNECTIONS
Each Cursor opens its own connection to the database. SEE ALSO
Tangram::Storage perl v5.8.8 2006-03-29 Tangram::Cursor(3pm)

Check Out this Related Man Page

SDL::Cursor(3)						User Contributed Perl Documentation					    SDL::Cursor(3)

NAME
SDL::Cursor - a SDL perl extension SYNOPSIS
$cursor = SDL::Cursor->new( -data => new SDL::Surface "cursor.png", -mask => new SDL::Surface "mask.png", -x => 0, -y => 0 ); $cusor->use; DESCRIPTION
the SDL::Cursor module handles mouse cursors, and provide the developer to use custom made cursors. Note that the cursors can only be in black and white. METHODS
new( -data => $surface_data, -mask => $surface_mask, x => $x, y => $y) Creates a new cursor. The <C>-data</C> and <C>-mask</C> parameters should be both black and white pictures. The height and width of these surfaces should be a multiple of 8. The <C>-x</C> and <C>-y</C> are the coordinates of the cursor 'hot spot'. warp($x, $y) Set the position of the cursor at the <C>$x</C>, <C>$y</C> coordinates in the application window. use() Set the cursor as the active cursor. get() When used statically <C>SDL::Cursor::get()</C>, it will return the instance of the current cursor in use. Called as a method, it will return itself. This method can be useful if you are dealing with several cursors. show($toggle) Set the visibility of the cursor. A false value will make the cursor invisible in the Application window. A true value will show it back. AUTHOR
David J. Goehrig SEE ALSO
perl SDL::Surface perl v5.12.1 2010-07-05 SDL::Cursor(3)
Man Page

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Why cd ./ instead cd only?

Hi, Somebody Knows why i have to execute $ cd ./<directory> instead only $ cd <directory>. I get the error : $ cd <directory> sh: <directory>: not found. else $ cd ./<directory> $ $ echo $PATH .:/usr/local/bin Thanks (1 Reply)
Discussion started by: oslensoto
1 Replies

2. UNIX for Dummies Questions & Answers

Cursor positioning thru VI Editor

Is there a way that I can position cursor at say line 23, column 2? Thank you in advance. (8 Replies)
Discussion started by: Latha Nair
8 Replies

3. Shell Programming and Scripting

Sqlplus

Hi all, I am new to SQLPLUS, can anyone tell me what is the following codes doing? DECLARE cursor c1 is select bts_int_id, max(ave_busy_tch/res_av_denom14) maxBusyTch from p_nbsc_res_avail where to_char(period_start_time,'yyyymmdd')=to_char((sysdate-1),'yyyymmdd') group by... (4 Replies)
Discussion started by: antkiu
4 Replies

4. Programming

Cursor Global Position

Hello all, How can i get the global position of the cursor? (i'm using c language, and suse 10.1 linux) Thanks. (3 Replies)
Discussion started by: boogy
3 Replies

5. UNIX for Advanced & Expert Users

execute a .jil file

Hi All, Could anyone suggest me as to how could we execute a .jil file. Thanks in advance. (1 Reply)
Discussion started by: OSD
1 Replies

6. Shell Programming and Scripting

SQR error 5528

Hi, I'm trying to execute a script which calls a SQR. The SQR is throwing an error SQR 5528-sybase ct_connect error in cursor 0 Login falied SQR 4701-Cannot connect to the database I'm not sure where is the id/password specified as this is an existing script. Any idea as where is... (1 Reply)
Discussion started by: autosys_nm
1 Replies

7. UNIX for Dummies Questions & Answers

Cursor position

Is there a way of finding the current cursor position (line & column) within AIX (4 Replies)
Discussion started by: gefa
4 Replies

8. UNIX for Advanced & Expert Users

How OS loads process in memory to execute ?

Hi, I was Googling to get info "How OS loads process into its memory to execute?" i mean when i execute ./<exename> , How OS exectes it? It will be better if i tell my intention, In my $LOGNAME saveral process are running, among all of these two process are my target process. Basically I... (1 Reply)
Discussion started by: ashokd001
1 Replies

9. Shell Programming and Scripting

Store output of DB Cursor to a txt file

I am writing a cursor to select values from 3 tables. I want to store these values in a txt file which I will be sending via ftp. I am able to store the results of simple select queries to the txt file. but I am not sure how to store the values when using a cursor. I have given the sql query below.... (1 Reply)
Discussion started by: naveensraj
1 Replies