Sqls::operator^

git-svn-id: svn://ultimatepp.org/upp/trunk@5351 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-09-11 17:55:29 +00:00
parent 4d51a9a23d
commit 0993f13660
2 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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(); }