← Back to team overview

drizzle-discuss team mailing list archive

Re: PROPOSAL: Change to the Cursor interface



This ties into a bigger question of how to return error/information from callers. Stewart and I spent a bit of time talking about this at the conference (though with no conclusion). The basic idea is to return an object that is minimal copy upon return (aka... no memory allocation and the hit cost is low). 

I wouldn't get wrapped up too much in the current design of it. 


On Apr 23, 2010, at 8:09 AM, Jay Pipes wrote:

> Cursor::InsertRecordResult result= cursor->insertRecord(table[0]);
> if (result.first == 0) /* successful result */
> {
>  inserted_rows= result.second.first;
>  replaced_rows= result.second.second;
> }
> Thoughts?

Follow ups