mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Sqls::operator^
git-svn-id: svn://ultimatepp.org/upp/trunk@5351 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4d51a9a23d
commit
0993f13660
2 changed files with 9 additions and 0 deletions
|
|
@ -262,6 +262,14 @@ Value Sql::operator%(const SqlStatement& q)
|
|||
return Select0(Compile(q));
|
||||
}
|
||||
|
||||
ValueMap Sql::operator^(const SqlStatement& q)
|
||||
{
|
||||
Execute(q);
|
||||
ValueMap m;
|
||||
Fetch(m);
|
||||
return m;
|
||||
}
|
||||
|
||||
ValueArray Sql::operator/(const SqlStatement& q)
|
||||
{
|
||||
ValueArray va;
|
||||
|
|
|
|||
|
|
@ -205,6 +205,7 @@ public:
|
|||
bool operator*(const SqlStatement& q) { return Execute(q); }
|
||||
Sql& operator&(const SqlStatement& q) { ExecuteX(q); return *this; }
|
||||
Value operator%(const SqlStatement& q);
|
||||
ValueMap operator^(const SqlStatement& q);
|
||||
ValueArray operator/(const SqlStatement& q);
|
||||
|
||||
SqlSession& GetSession() const { return cn->GetSession(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue