Skip to content

Commit ca26597

Browse files
cursoragentlovasoa
andcommitted
feat: Add SQL Server named instance support with SSRP
Co-authored-by: contact <[email protected]>
1 parent 3532378 commit ca26597

File tree

10 files changed

+23
-19
lines changed

10 files changed

+23
-19
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## 0.6.50
9+
- Added support for SQL Server named instances with automatic port discovery via SSRP (SQL Server Resolution Protocol). You can now connect using `mssql://user:pass@host/db?instance=SQLEXPRESS` and the port will be automatically discovered.
10+
811
## 0.6.49
912
- Added support for ODBC. SQLx-oldapi can now connect to Oracle, Db2, Snowflake, BigQuery, Databricks, and many other databases, using locally installed ODBC drivers.
1013

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ unexpected_cfgs = { level = "warn", check-cfg = [
2626

2727
[package]
2828
name = "sqlx-oldapi"
29-
version = "0.6.49"
29+
version = "0.6.50"
3030
license = "MIT OR Apache-2.0"
3131
readme = "README.md"
3232
repository = "https://github.com/lovasoa/sqlx"
@@ -155,8 +155,8 @@ bstr = ["sqlx-core/bstr"]
155155
git2 = ["sqlx-core/git2"]
156156

157157
[dependencies]
158-
sqlx-core = { package = "sqlx-core-oldapi", version = "0.6.49", path = "sqlx-core", default-features = false }
159-
sqlx-macros = { package = "sqlx-macros-oldapi", version = "0.6.49", path = "sqlx-macros", default-features = false, optional = true }
158+
sqlx-core = { package = "sqlx-core-oldapi", version = "0.6.50", path = "sqlx-core", default-features = false }
159+
sqlx-macros = { package = "sqlx-macros-oldapi", version = "0.6.50", path = "sqlx-macros", default-features = false, optional = true }
160160

161161
[dev-dependencies]
162162
anyhow = "1.0.52"

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
> - Multiple bug fixes around string handling, including better support for long strings
1616
> - Support for packet chunking, which fixes a bug where large bound parameters or large queries would fail
1717
> - Support for TLS encrypted connections
18+
> - Support for named instances with automatic port discovery via SSRP
1819
>
1920
> The main use case driving the development of sqlx-oldapi is the [SQLPage](https://sql.datapage.app/) SQL-only rapid application building tool.
2021

examples/postgres/axum-social-with-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish = false
99
[dependencies]
1010
# Primary crates
1111
axum = { version = "0.5.13", features = ["macros"] }
12-
sqlx = { package = "sqlx-oldapi", version = "0.6.49", path = "../../../", features = ["runtime-tokio-rustls", "postgres", "time", "uuid"] }
12+
sqlx = { package = "sqlx-oldapi", version = "0.6.50", path = "../../../", features = ["runtime-tokio-rustls", "postgres", "time", "uuid"] }
1313
tokio = { version = "1.20.1", features = ["rt-multi-thread", "macros"] }
1414

1515
# Important secondary crates

sqlx-bench/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ sqlite = ["sqlx/sqlite"]
3333
criterion = "0.3.3"
3434
dotenvy = "0.15.0"
3535
once_cell = "1.4"
36-
sqlx = { package = "sqlx-oldapi", version = "0.6.49", path = "../", default-features = false, features = ["macros"] }
37-
sqlx-rt = { package = "sqlx-rt-oldapi", version = "0.6.49", path = "../sqlx-rt", default-features = false }
36+
sqlx = { package = "sqlx-oldapi", version = "0.6.50", path = "../", default-features = false, features = ["macros"] }
37+
sqlx-rt = { package = "sqlx-rt-oldapi", version = "0.6.50", path = "../sqlx-rt", default-features = false }
3838

3939
chrono = "0.4.19"
4040

sqlx-cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlx-cli"
3-
version = "0.6.49"
3+
version = "0.6.50"
44
description = "Command-line utility for SQLx, the Rust SQL toolkit."
55
edition = "2021"
66
readme = "README.md"
@@ -28,7 +28,7 @@ path = "src/bin/cargo-sqlx.rs"
2828
[dependencies]
2929
dotenvy = "0.15.0"
3030
tokio = { version = "1.15.0", features = ["macros", "rt", "rt-multi-thread"] }
31-
sqlx = { package = "sqlx-oldapi", version = "0.6.49", path = "..", default-features = false, features = [
31+
sqlx = { package = "sqlx-oldapi", version = "0.6.50", path = "..", default-features = false, features = [
3232
"migrate",
3333
"any",
3434
"offline",

sqlx-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlx-core-oldapi"
3-
version = "0.6.49"
3+
version = "0.6.50"
44
repository = "https://github.com/lovasoa/sqlx"
55
description = "Core of SQLx, the rust SQL toolkit. Not intended to be used directly."
66
license = "MIT OR Apache-2.0"
@@ -104,7 +104,7 @@ offline = ["serde", "either/serde"]
104104
paste = "1.0.6"
105105
ahash = "0.8.3"
106106
atoi = "2.0.0"
107-
sqlx-rt = { path = "../sqlx-rt", version = "0.6.49", package = "sqlx-rt-oldapi" }
107+
sqlx-rt = { path = "../sqlx-rt", version = "0.6.50", package = "sqlx-rt-oldapi" }
108108
base64 = { version = "0.22", default-features = false, optional = true, features = ["std"] }
109109
bigdecimal_ = { version = "0.4.1", optional = true, package = "bigdecimal" }
110110
rust_decimal = { version = "1.19.0", optional = true }

sqlx-macros/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlx-macros-oldapi"
3-
version = "0.6.49"
3+
version = "0.6.50"
44
repository = "https://github.com/lovasoa/sqlx"
55
description = "Macros for SQLx, the rust SQL toolkit. Not intended to be used directly."
66
license = "MIT OR Apache-2.0"
@@ -75,8 +75,8 @@ heck = { version = "0.5" }
7575
either = "1.6.1"
7676
once_cell = "1.9.0"
7777
proc-macro2 = { version = "1.0.36", default-features = false }
78-
sqlx-core = { package = "sqlx-core-oldapi", version = "0.6.49", default-features = false, features = ["any", "aws_lc_rs", "tls12"], path = "../sqlx-core" }
79-
sqlx-rt = { version = "0.6.49", default-features = false, path = "../sqlx-rt", package = "sqlx-rt-oldapi", features = ["aws_lc_rs"] }
78+
sqlx-core = { package = "sqlx-core-oldapi", version = "0.6.50", default-features = false, features = ["any", "aws_lc_rs", "tls12"], path = "../sqlx-core" }
79+
sqlx-rt = { version = "0.6.50", default-features = false, path = "../sqlx-rt", package = "sqlx-rt-oldapi", features = ["aws_lc_rs"] }
8080
serde = { version = "1.0.132", features = ["derive"], optional = true }
8181
serde_json = { version = "1.0.73", optional = true }
8282
sha2 = { version = "0.10.0", optional = true }

sqlx-rt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "sqlx-rt-oldapi"
3-
version = "0.6.49"
3+
version = "0.6.50"
44
repository = "https://github.com/launchbadge/sqlx"
55
license = "MIT OR Apache-2.0"
66
description = "Runtime abstraction used by SQLx, the Rust SQL toolkit. Not intended to be used directly."

0 commit comments

Comments
 (0)