<< DbFetchString SciDb DbFirst >>

SciDb >> SciDb > DbFetchStruct

DbFetchStruct

get a record from result as struct

Calling Sequence

DbFetchStruct(resultHandler)

Parameters

resultHandler

a pointer to result handler object (returned by DbQuery())

Description

DbFetchStruct(resultHandler) gets a record from query result, represented by resultHandler pointer, as struct

Examples

// Opens a “PostgreSQL” connection with a connexion string
dblink = DbConnect("PSQL", ..
"Server=127.0.0.1;Database=myDataBase;User Id=myUsername;Password=myPassword;");

resultHandle = DbQuery(dblink, "SELECT * FROM data_table");

recordStruct = DbFetchStruct(resulthandle);

See Also

Authors


Report an issue
<< DbFetchString SciDb DbFirst >>