metadata_store.go ×7

Frontier kind: Code frontier

unlabeled · c_8f50955018ef

2 tests · 5051 LOC · 206 files · introduces 0 tests · 19 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges19 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
977 ranges5051 lines · 206 files · Browse complete extent
All tests (intent)
2 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 19 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

go.temporal.io/server/common/persistence/cassandra/metadata_store.go 19 introduced LOC · 7 ranges

Open complete file

417 ctx context.Context,
418 request *p.DeleteNamespaceRequest,
419 > ) error { metadata_store.go
420 > var name string
421 > query := m.session.Query(templateGetNamespaceQuery, request.ID).WithContext(ctx)
422 > err := query.Scan(&name)
423 > if err != nil {
424 if gocql.IsNotFoundError(err) {
425 return nil
428 }
429
430 > parsedID, err := primitives.ParseUUID(request.ID) metadata_store.go
431 > if err != nil {
432 return err
433 }
434 > return m.deleteNamespace(ctx, name, parsedID) metadata_store.go
435 }
436
438 ctx context.Context,
439 request *p.DeleteNamespaceByNameRequest,
440 > ) error { metadata_store.go
441 > var ID []byte
442 > query := m.session.Query(templateGetNamespaceByNameQueryV2, constNamespacePartition, request.Name).WithContext(ctx)
443 > err := query.Scan(&ID, nil, nil, nil, nil, nil)
444 > if err != nil {
445 if gocql.IsNotFoundError(err) {
446 return nil
486 }
487
488 > func (m *MetadataStore) deleteNamespace(ctx context.Context, name string, ID []byte) error { metadata_store.go
489 > query := m.session.Query(templateDeleteNamespaceByNameQueryV2, constNamespacePartition, name).WithContext(ctx)
490 > if err := query.Exec(); err != nil {
491 return gocql.ConvertError("DeleteNamespaceByName", err)
492 }
493
494 > query = m.session.Query(templateDeleteNamespaceQuery, ID).WithContext(ctx) metadata_store.go
495 > if err := query.Exec(); err != nil {
496 return gocql.ConvertError("DeleteNamespace", err)
497 }
498
499 > return nil metadata_store.go
500 }
501