Comments (2)
As far as I can tell the closest thing is CLIENT_MULTI_STATEMENTS capability and actually it is enabled by the driver (see here).
This means that if it is enabled on the server side, then you can try to prepare multiple SQL statements using single prepare and try to execute the resulting prepared statement — results should be in binary protocol. Please note that I never tried this so please report in case of issues.
from mysql_async.
Thanks for the tip, but so far no results.
I'm using mariadb, searched, can't find anywhere how to enable it on the server side.
Everywhere it is specified as a flag on connection.
result = conn.exec_iter("select 1; select 2;", Params::Empty).await?;
ServerError { code: 1064, message: "You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select 2' at line 1", state: "42000" }
from mysql_async.
Related Issues (20)
- Alternative to priority_queue dependency HOT 2
- When inserting data in bulk, parsing parameter errors were found HOT 3
- Make connection_like::ToConnection public
- Re-export "chrono" feature from mysql_common HOT 3
- pass prefer_socket=false is not effective HOT 1
- TCP keepalive definition may be better expressed in seconds HOT 2
- I see that mysql_common has already updated the version, so when can the new version of mysql_async be pushed to crates.io? HOT 1
- Documentation seems outdated HOT 3
- When use the query_stream method, the error "bytes remaining on stream" occurs. HOT 1
- Questions from Rust newbies HOT 1
- sql_mode=ANSI_QUOTES causes `UnknownStatusFlags(32770)` error when trying to connect to MariaDB 11.2 HOT 1
- Example does not compile
- add support for connection compression-algorithms HOT 1
- mysql_native_password or caching_sha2_password HOT 3
- Is pools close if their ownership moves? HOT 6
- skip_domain_validation not working when using rustls
- New release for mysql_common 0.32?
- v0.34.0 , FromRow macro not work HOT 3
- Method Row.get(index) could not convert Null to Option(T) HOT 2
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 mysql_async.