Comments (4)
It's easy to add a counter to client code, not sure I want to add this
from asql.
I dont know how I can get any query counter in lambda expression handler on each query result.
I have checked that on each call of lambda I got whole query string /"SELECT...; SELECT...; SELECT....; SELECT...; SELECT.../ in query(), not only for query just executed (mean one "SELECT...")
In fact that it would be very sufficient for me.
from asql.
ASql just sends the whole string to the server, and the server doesn't reply which query it run.
auto counter = std::make_shared<int>(0);
[counter]()....
should be enough, you can also use pipeline mode instead of having a big query.
from asql.
Yes, it is working, THX
from asql.
Related Issues (20)
- Question: Is database username and password easy to grab? HOT 1
- Including ASql libs in Cutelyst app HOT 5
- Table name as query parameter? HOT 2
- How to prepare value for column of integer[] type HOT 4
- query with integer[] array HOT 4
- Using ASql with sync mode? HOT 1
- Feature Request: ad field like QSqlQuery ASql::AResult::lastExecutedQuery HOT 3
- Please update deb package HOT 1
- db.exec on a disconnected database HOT 2
- prepared statement in ORDER BY not working HOT 3
- Has Asql any public function to validate query parameters outside of db.exec? HOT 1
- coroutine support (qcoro) HOT 1
- general question HOT 1
- HELP needed: transaction when calling many functions with queries HOT 2
- Suspicious ")", "tabsle" and more HOT 1
- Executable names with Qt5 and Qt6 HOT 1
- Compilation error HOT 6
- ASql setNumericalPrecisionPolicy HOT 1
- Is there any plan to support MySQL driver? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asql.