1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-15 07:32:17 +00:00
steve/pkg/stores/sqlproxy
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
..
tablelistconvert Migrate the mocking library to uber's (#291) 2024-10-10 10:28:25 -07:00
dynamic_mocks_test.go Migrate the mocking library to uber's (#291) 2024-10-10 10:28:25 -07:00
proxy_mocks_test.go sql: propagate and use contexts (#465) 2025-02-12 09:46:10 +01:00
proxy_store_test.go sql: propagate and use contexts (#465) 2025-02-12 09:46:10 +01:00
proxy_store.go sql: propagate and use contexts (#465) 2025-02-12 09:46:10 +01:00
sql_informer_mocks_test.go Move lasso SQL cache in Steve (#452) 2025-01-17 09:34:48 -05:00