-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
methods from mysql into mysql_async differ #102
Comments
Yeah, crates are developed independently and may support different set of features at some point in time. Usually I'm trying to keep them up with each other. The change, mentioned by you, is relatively new in the
Please use
I think it's possible, at least for inhabitants of the |
Hi @blackbeam , thanks , regarding the
I can connect and do some queries but I notice that there is only 1 connection instead of 10 as the minimum defined for the pool, therefore wondering if something else is required to start the pool with the defined options. Thanks in advance. |
Pool behaviour in |
How could then I create the pool and then pass it as a reference, or it is going to fill up after used 10 times for example? I was thinking of having a normal
|
Pool instance is simply an
Since constructors are synchronous they adds no restrictions on how to instantiate a pool (within synchronous or asynchronous function). Also, since pool is an Arc, each clone of a pool instance will actually be the same instance, so you can create one and giveaway its clones anywhere you want. |
Hi, while moving code from I mainly use https://crates.io/crates/dsn to parse the DSN (returns options), so is very handy for example in
|
Hi, I am trying to use
mysql_async
from existing code usingmysql
(https://docs.rs/mysql) but notice that some methods are missing or not the same, for example, theip_or_hostname
From https://docs.rs/mysql/18.0.0/src/mysql/conn/opts.rs.html#471-477
When creating the pool, how in
mysql_assync
use https://docs.rs/mysql/18.0.0/mysql/struct.Pool.html#method.new_manual so thatmin
andmax
could be used?Could it be possible to keep the methods with the same signatures and options?
The text was updated successfully, but these errors were encountered: