Article View: pl.comp.bazy-danych
Article #194972Możliwy callback w mySQL Connectorze?
From: Borneq
Date: Sun, 22 May 2016 19:17
Date: Sun, 22 May 2016 19:17
20 lines
1624 bytes
1624 bytes
Mam selecta z wielu milionów wierszy
try {
sql::ResultSet *res = stmt->executeQuery(sql_statement);
while (res->next()) {
akcje
}
delete res;
}
catch (sql::SQLException &e) {
cout << "# ERR: SQLException in " << __FILE__;
cout << "(" << __FUNCTION__ << ") on line " << __LINE__ << endl;
cout << "# ERR: " << e.what();
cout << " (MySQL error code: " << e.getErrorCode();
cout << ", SQLState: " << e.getSQLState() << " )" << endl;
}
Tam gdzie są akcje mogę wrzucić informację o postępie, ale samo
stmt->executeQuery(sql_statement) wykonuje się najdłużej. Czy w
Connectorze jest możliwość zadania jakiegoś callbacka, który
wielokrotnie byłby wołany?
Technical Details
Message-ID:
<nht0k8$b1g$1@node1.news.atman.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail From: Borneq <borneq@antyspam.hidden.pl> Newsgroups: pl.comp.bazy-danych,pl.comp.lang.c Subject: Możliwy callback w mySQL Connectorze? Date: Sun, 22 May 2016 21:17:28 +0200 Organization: ATMAN - ATM S.A. Lines: 20 Message-ID: <nht0k8$b1g$1@node1.news.atman.pl> NNTP-Posting-Host: 91.239.205.105 Mime-Version: 1.0 X-Trace: node1.news.atman.pl 1463944648 11312 91.239.205.105 (22 May 2016 19:17:28 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Sun, 22 May 2016 19:17:28 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 X-Mozilla-News-Host: news://news.atman.pl:119 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit