You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As this crate mostly address the problem is mssql which remove from sqlx, but the readme and example all miss the mssql example or snippets, when most users here focused on mssql database, so it is better to make the point more clear.
And currently, I struggle to figure how to make the mssql works, as it always shows pool timed out while waiting for an open connection, while sqlcmd can connect it.
Thank you for the invitation, maybe later, currently for connect with url like mssql://user:password@ip:port/database try the following method
// use option and parse str and then set encrypt to NotSupportedlet options = MssqlConnectOptions::from_str(database_url)?
.encrypt(sqlx_oldapi::mssql::Encrypt::NotSupported).trust_server_certificate(true);
then it will work for local docker mssql container, others will show the error Error: Tls(Error { code: -9806, message: "connection closed via error" })
As this crate mostly address the problem is
mssqlwhich remove from sqlx, but the readme and example all miss the mssql example or snippets, when most users here focused onmssqldatabase, so it is better to make the point more clear.