1
0
mirror of https://github.com/rancher/steve.git synced 2025-06-29 16:27:15 +00:00
steve/pkg/sqlcache/db
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
..
transaction sql: use a closure to wrap transactions (#469) 2025-02-05 10:05:52 +01:00
client_test.go sql: propagate and use contexts (#465) 2025-02-12 09:46:10 +01:00
client.go sql: use a closure to wrap transactions (#469) 2025-02-05 10:05:52 +01:00
db_mocks_test.go sql: use a closure to wrap transactions (#469) 2025-02-05 10:05:52 +01:00
transaction_mocks_test.go sql: use a closure to wrap transactions (#469) 2025-02-05 10:05:52 +01:00
utility.go Move lasso SQL cache in Steve (#452) 2025-01-17 09:34:48 -05:00