Skip to content

Commit 20e00a5

Browse files
author
Prabakaran Annadurai
committed
Update Cargo.toml to match connector structure
Update rust/sqlx binary and test configuration to match the connector repo structure with example_preferred.rs instead of main.rs
1 parent 177a6e1 commit 20e00a5

2 files changed

Lines changed: 19 additions & 11 deletions

File tree

.github/workflows/rust-sqlx-integ-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
CLUSTER_ENDPOINT: ${{ needs.create-cluster.outputs.cluster-endpoint }}
4848
REGION: ${{ needs.create-cluster.outputs.region }}
4949
run: |
50-
cargo run
50+
cargo test
5151
5252
delete-cluster:
5353
if: always() && needs.create-cluster.result == 'success'

rust/sqlx/Cargo.toml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,24 @@ edition = "2021"
55
include = ["/src"]
66

77
[dependencies]
8-
tokio = { version = "1.52", features = ["full"] }
9-
sqlx = { version = "0.8", features = [ "runtime-tokio", "tls-rustls" , "postgres", "uuid"] }
10-
anyhow = { version = "1", features = ["backtrace"] }
11-
aws-config = "1.8"
12-
aws-sdk-dsql = "1.55"
13-
rand = "0.10"
14-
uuid = { version = "1.23", features = ["v4"] }
15-
log = "0.4.29"
8+
aurora-dsql-sqlx-connector = { version = "0.1", features = ["pool", "occ"] }
9+
anyhow = "1"
10+
tokio = { version = "1", features = ["full"] }
11+
sqlx = { version = "0.8", features = ["runtime-tokio", "postgres"] }
1612

1713

1814
[[bin]]
19-
name = "sqlx"
20-
path = "src/main.rs"
15+
name = "example_preferred"
16+
path = "src/example_preferred.rs"
17+
18+
[[bin]]
19+
name = "example_no_connection_pool"
20+
path = "src/alternatives/no_connection_pool/example_no_connection_pool.rs"
21+
22+
[[test]]
23+
name = "example_preferred_test"
24+
path = "tests/example_preferred_test.rs"
25+
26+
[[test]]
27+
name = "example_no_connection_pool_test"
28+
path = "tests/alternatives/no_connection_pool/example_no_connection_pool_test.rs"

0 commit comments

Comments
 (0)