gda_recordset_open

Name

gda_recordset_open —

Synopsis

gint gda_recordset_open (Gda_Recordset* rs, Gda_Command* cmd, GDA_CursorType cursor_type, GDA_LockType lock_type, gulong options);

Arguments

rs

the recordset

cmd

the command object

cursor_type

the type of the cursor used. Currently only a forward only cursor is implemented

lock_type

the type of locks used for the command. Currently only readonly type of locking is supported.

options

currently not implemented. Used to identify how to parse the txt.

Description

This function opens a recordset. The recordset is filled with the output of cmd. Before this function is called various parameters of the recordst might be changed. This is the most featurefull function for retrieving results from a database.

Returns

0 if everytrhing is okay, -1 on error