Skip to content

feat(orm)!: transactions support#468

Draft
m4tx wants to merge 2 commits intomasterfrom
transactions
Draft

feat(orm)!: transactions support#468
m4tx wants to merge 2 commits intomasterfrom
transactions

Conversation

@m4tx
Copy link
Member

@m4tx m4tx commented Feb 1, 2026

No description provided.

@github-actions github-actions bot added C-lib Crate: cot (main library crate) C-macros Crate: cot-macros labels Feb 1, 2026
@codecov
Copy link

codecov bot commented Feb 1, 2026

Codecov Report

❌ Patch coverage is 76.90217% with 85 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cot/src/db.rs 69.92% 53 Missing and 24 partials ⚠️
cot/src/auth/db.rs 75.00% 3 Missing and 1 partial ⚠️
cot/src/db/sea_query_db.rs 96.05% 0 Missing and 3 partials ⚠️
cot/src/db/query.rs 90.00% 0 Missing and 1 partial ⚠️
Flag Coverage Δ
rust 89.67% <76.90%> (-0.35%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot-macros/src/model.rs 96.36% <ø> (ø)
cot/src/db/impl_mysql.rs 100.00% <ø> (ø)
cot/src/db/impl_postgres.rs 100.00% <ø> (ø)
cot/src/db/impl_sqlite.rs 94.73% <ø> (ø)
cot/src/db/relations.rs 91.66% <100.00%> (ø)
cot/src/session/store/db.rs 85.93% <100.00%> (+4.85%) ⬆️
cot/src/db/query.rs 75.83% <90.00%> (+0.09%) ⬆️
cot/src/db/sea_query_db.rs 96.73% <96.05%> (-0.51%) ⬇️
cot/src/auth/db.rs 85.21% <75.00%> (+0.12%) ⬆️
cot/src/db.rs 77.99% <69.92%> (-8.27%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link

github-actions bot commented Feb 1, 2026

🐰 Bencher Report

Branchtransactions
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
6,172.60 µs
(+4.27%)Baseline: 5,919.82 µs
7,017.69 µs
(87.96%)
json_api/json_api📈 view plot
🚷 view threshold
1,080.40 µs
(+5.45%)Baseline: 1,024.59 µs
1,171.89 µs
(92.19%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1,005.00 µs
(+6.37%)Baseline: 944.78 µs
1,074.29 µs
(93.55%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
962.47 µs
(+6.29%)Baseline: 905.52 µs
1,031.78 µs
(93.28%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
17,095.00 µs
(-2.49%)Baseline: 17,531.12 µs
20,716.45 µs
(82.52%)
🐰 View full continuous benchmarking report in Bencher

let user = DatabaseUser::get_by_username(&mut transaction, "admin").await?;
if user.is_none() {
DatabaseUser::create_user(context.database(), "admin", "admin").await?;
DatabaseUser::create_user(&mut transaction, "admin", "admin").await?;

Check failure

Code scanning / CodeQL

Hard-coded cryptographic value Critical

This hard-coded value is used as
a password
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-lib Crate: cot (main library crate) C-macros Crate: cot-macros

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant