MCPcopy Create free account
hub / github.com/clouditor/clouditor / Save

Method Save

persistence/persistence.go:50–50  ·  view source on GitHub ↗

Save updates the record r (workaround with conds needed that e.g. user has no specific ID, and we can not touch the generated (gRPC) code s.t. user.username has primary key annotation)

(r any, conds ...any)

Source from the content-addressed store, hash-verified

48 // Save updates the record r (workaround with conds needed that e.g. user has no specific ID, and we can not touch
49 // the generated (gRPC) code s.t. user.username has primary key annotation)
50 Save(r any, conds ...any) error
51
52 // Update updates the record with given id of the DB with non-zero values in r
53 Update(r any, conds ...any) error

Callers 15

TestPaginateStorageFunction · 0.65
StartDiscoveryMethod · 0.65
UpdateResourceMethod · 0.65
loadCatalogsMethod · 0.65
loadMetricsMethod · 0.65
UpdateMetricMethod · 0.65
UpdateCertificateMethod · 0.65
ContinueSessionFunction · 0.65

Implementers 2

StorageWithErrorinternal/testutil/storage.go
storagepersistence/gorm/gorm.go

Calls

no outgoing calls

Tested by 3

TestPaginateStorageFunction · 0.52
Test_storage_SaveFunction · 0.52