U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » Sql: ValueMap and ValueArray support, SqlSession::ThrowOnError
Sql: ValueMap and ValueArray support, SqlSession::ThrowOnError [message #34948] Mon, 19 December 2011 20:04
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
It is now possible to read the whole row into ValueMap (including keys), using either new Fetch(ValueMap&) method or new GetRowMap method (after Fetch).

There is also a new Sql::operator/, which is similar to %, but reads all values into ValueArray of ValueMaps.

SqlSession now has ThrowOnError method, which makes session and all associated Sql to throw on errors regardless of execution method called. In other words, with this active, Execute behaves like ExecuteX and operator* like operator&. operator% and operator/ throw as well...
Previous Topic: Sql::SetSession, Sql0
Next Topic: U++ library prebuilt for vs2008
Goto Forum:
  


Current Time: Mon May 04 07:41:25 GMT+2 2026

Total time taken to generate the page: 0.00832 seconds