Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Small SqlCtrls improvement
Small SqlCtrls improvement [message #4188] |
Fri, 28 July 2006 11:08 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
SqlCtrls:
bool Load(Sql& sql, SqlSet set) { sql * set; return Fetch(sql); }
#ifndef NOAPPSQL
bool Load(SqlSet set) { return Load(SQL, set); }
#endif
bool Load(Sql& sql, SqlId table, SqlBool set);
#ifndef NOAPPSQL
bool Load(SqlId table, SqlBool set);
#endif
Instead of
SQL * Select(ctrls).From(TABLE).Where(where);
ctrls.Fetch();
which is very common in my code, you can now write
ctrls.Load(TABLE, where);
Mirek
|
|
|
Goto Forum:
Current Time: Tue May 21 07:47:07 CEST 2024
Total time taken to generate the page: 0.02263 seconds
|