MCPcopy Index your code
hub / github.com/bytebase/bytebase / findDataSource

Function findDataSource

backend/tests/data_source_test.go:266–273  ·  view source on GitHub ↗
(dataSources []*v1pb.DataSource, id string)

Source from the content-addressed store, hash-verified

264}
265
266func findDataSource(dataSources []*v1pb.DataSource, id string) *v1pb.DataSource {
267 for _, dataSource := range dataSources {
268 if dataSource.Id == id {
269 return dataSource
270 }
271 }
272 return nil
273}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected