1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-27 10:29:48 +00:00
steve/pkg/sqlcache/store
Silvio Moioli 3350323f91
sql: propagate and use contexts (#465)
Previous SQLite-related code used context.Background() and context.TODO() because it was not developed with context awareness.

This commit propagates the main Steve context so that it can be used when interacting with SQL context-aware functions.

This PR removes all production-code use of context.Background() and context.TODO() and replaces test-code use of TODO with Background.

Contributes to rancher/rancher#47825
2025-02-12 09:46:10 +01:00
..
db_mocks_test.go sql: use a closure to wrap transactions (#469) 2025-02-05 10:05:52 +01:00
store_test.go sql: propagate and use contexts (#465) 2025-02-12 09:46:10 +01:00
store.go sql: propagate and use contexts (#465) 2025-02-12 09:46:10 +01:00
transaction_mocks_test.go sql: use a closure to wrap transactions (#469) 2025-02-05 10:05:52 +01:00