embed.go ×5

Frontier kind: Joint frontier

unlabeled · c_dc629c94ad4a

31 tests · 294 LOC · 14 files · introduces 1 test · 14 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
5 ranges14 lines · 1 files
Tests
1 test

Contains — complete concept membership

All code (extent)
40 ranges294 lines · 14 files · Browse complete extent
All tests (intent)
31 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.

Introduced files, introduced tests, and structurally relevant concept specializationTestVisibilityDryrun · 0 introduced LOCTestVisibilityDryrunTestVisibilityDryrun · 0 introduced LOCTestVisibilityDryrunquery_util.go ×3 · 6 introduced LOCquery_util.go ×3TestUpdateSchema · 0 introduced LOCTestUpdateSchemaTestUpdateSchema · 0 introduced LOCTestUpdateSchemaTestUpdateSchema · 0 introduced LOCTestUpdateSchemaTestDryrun · 0 introduced LOCTestDryrunTestVisibilityDryrun · 0 introduced LOCTestVisibilityDryrunupdate_task_tests.go ×1 · 6 introduced LOCupdate_task_tests.go ×1cqlclient.go ×4 · 17 introduced LOCcqlclient.go ×4TestDryrun · 0 introduced LOCTestDryrunTestDryrun · 0 introduced LOCTestDryrunhandler.go ×4 · 18 introduced LOChandler.go ×4TestVerifyCompatibleVersion · 0 introduced LOCTestVerifyCompatibleVers…update_task_tests.go ×1 · 6 introduced LOCupdate_task_tests.go ×1TestVerifyCompatibleVersion · 0 introduced LOCTestVerifyCompatibleVers…db.go ×2 · 6 introduced LOCdb.go ×2update_task_tests.go ×1 · 8 introduced LOCupdate_task_tests.go ×1TestSetupSchema · 0 introduced LOCTestSetupSchemaupdate_task_tests.go ×1 · 8 introduced LOCupdate_task_tests.go ×1TestSetupSchema · 0 introduced LOCTestSetupSchemaupdate_task_tests.go ×4 · 37 introduced LOCupdate_task_tests.go ×4TestSetupSchema · 0 introduced LOCTestSetupSchemadb.go ×2 · 6 introduced LOCdb.go ×2handler.go ×1 · 8 introduced LOChandler.go ×1schema_version_reader.go ×4 · 77 introduced LOCschema_version_reader.go…setuptest.go ×1 · 11 introduced LOCsetuptest.go ×1version_tests.go ×4 · 78 introduced LOCversion_tests.go ×4handler.go ×4 · 12 introduced LOChandler.go ×4updatetest.go ×3 · 74 introduced LOCupdatetest.go ×3dbtest.go ×4 · 8 introduced LOCdbtest.go ×4updatetest.go ×1 · 23 introduced LOCupdatetest.go ×1updatetask.go ×34 · 135 introduced LOCupdatetask.go ×34handler.go ×4 · 13 introduced LOChandler.go ×4pgx.go ×1 · 4 introduced LOCpgx.go ×1pq.go ×1 · 4 introduced LOCpq.go ×1TestCreateDatabase · 0 introduced LOCTestCreateDatabaseTestCreateDatabase · 0 introduced LOCTestCreateDatabaseTestCreateDatabaseIdempotent · 0 introduced LOCTestCreateDatabaseIdempo…admin.go ×1 · 6 introduced LOCadmin.go ×1TestCreateDatabase · 0 introduced LOCTestCreateDatabasehandler.go ×4 · 14 introduced LOChandler.go ×4setup_task_tests.go ×3 · 9 introduced LOCsetup_task_tests.go ×3setuptest.go ×4 · 84 introduced LOCsetuptest.go ×4main.go ×1 · 4 introduced LOCmain.go ×1setup_task_tests.go ×1 · 16 introduced LOCsetup_task_tests.go ×1setup_task_tests.go ×1 · 29 introduced LOCsetup_task_tests.go ×1handler.go ×5 · 17 introduced LOChandler.go ×5version.go ×3 · 9 introduced LOCversion.go ×3setuptest.go ×1 · 10 introduced LOCsetuptest.go ×1setup_task_tests.go ×4 · 21 introduced LOCsetup_task_tests.go ×4dbtest.go ×5 · 7 introduced LOCdbtest.go ×5main.go ×1 · 4 introduced LOCmain.go ×1handler.go ×4 · 141 introduced LOChandler.go ×4setuptask.go ×8 · 18 introduced LOCsetuptask.go ×8setuptask.go ×11 · 50 introduced LOCsetuptask.go ×11setuptest.go ×3 · 14 introduced LOCsetuptest.go ×3handler.go ×1 · 4 introduced LOChandler.go ×1handler.go ×2 · 15 introduced LOChandler.go ×2main.go ×1 · 2 introduced LOCmain.go ×1handler.go ×2 · 8 introduced LOChandler.go ×2handler.go ×4 · 170 introduced LOChandler.go ×4types.go ×1 · 3 introduced LOCtypes.go ×1handler.go ×4 · 12 introduced LOChandler.go ×4handler.go ×3 · 9 introduced LOChandler.go ×3handler.go ×1 · 3 introduced LOChandler.go ×1embed.go ×1 · 1 introduced LOCembed.go ×1handler.go ×2 · 3 introduced LOChandler.go ×2handler.go ×7 · 11 introduced LOChandler.go ×7handler.go ×5 · 6 introduced LOChandler.go ×5mock_db.go ×1 · 3 introduced LOCmock_db.go ×1handler.go ×1 · 3 introduced LOChandler.go ×1embed.go ×1 · 2 introduced LOCembed.go ×1embed.go ×1 · 2 introduced LOCembed.go ×1zap_logger.go ×2 · 33 introduced LOCzap_logger.go ×2embed.go ×1 · 3 introduced LOCembed.go ×1zap_logger.go ×1 · 7 introduced LOCzap_logger.go ×1tags.go ×9 · 37 introduced LOCtags.go ×9cluster.pb.go ×2 · 200 introduced LOCcluster.pb.go ×2TestOperatorServiceMetadata, TestWorkflowServiceMetadata · 0 introduced LOCTestOperatorServiceMetad…go.temporal.io/server/api/enums/v1/cluster.pb.go · 233 LOCv1/cluster.pb.gogo.temporal.io/server/api/enums/v1/common.pb.go · 288 LOCv1/common.pb.gogo.temporal.io/server/api/enums/v1/dlq.pb.go · 211 LOCv1/dlq.pb.gogo.temporal.io/server/api/enums/v1/fairness_state.pb.go · 147 LOCv1/fairness_state.pb.gogo.temporal.io/server/api/enums/v1/nexus.pb.go · 182 LOCv1/nexus.pb.gogo.temporal.io/server/api/enums/v1/predicate.pb.go · 194 LOCv1/predicate.pb.gogo.temporal.io/server/api/enums/v1/replication.pb.go · 338 LOCv1/replication.pb.gogo.temporal.io/server/api/enums/v1/task.pb.go · 480 LOCv1/task.pb.gogo.temporal.io/server/api/enums/v1/workflow.pb.go · 299 LOCv1/workflow.pb.gogo.temporal.io/server/api/enums/v1/workflow_task_type.pb.go · 148 LOCv1/workflow_task_type.pb…go.temporal.io/server/common/log/tag/tags.go · 1039 LOCtag/tags.gogo.temporal.io/server/common/log/tag/zap_tag.go · 242 LOCtag/zap_tag.gogo.temporal.io/server/common/log/zap_logger.go · 318 LOClog/zap_logger.gogo.temporal.io/server/common/persistence/cassandra/schema_version_reader.go · 41 LOCcassandra/schema_version…go.temporal.io/server/common/persistence/cassandra/version_checker.go · 62 LOCcassandra/version_checke…go.temporal.io/server/common/persistence/query_util.go · 258 LOCpersistence/query_util.g…go.temporal.io/server/common/persistence/schema/version.go · 30 LOCschema/version.gogo.temporal.io/server/common/persistence/sql/sqlplugin/mysql/db.go · 170 LOCmysql/db.gogo.temporal.io/server/common/persistence/sql/sqlplugin/postgresql/admin.go · 132 LOCpostgresql/admin.gogo.temporal.io/server/common/persistence/sql/sqlplugin/postgresql/db.go · 177 LOCpostgresql/db.gogo.temporal.io/server/common/persistence/sql/sqlplugin/postgresql/driver/pgx.go · 86 LOCdriver/pgx.gogo.temporal.io/server/common/persistence/sql/sqlplugin/postgresql/driver/pq.go · 52 LOCdriver/pq.gogo.temporal.io/server/schema/embed.go · 66 LOCschema/embed.gogo.temporal.io/server/tools/cassandra/cqlclient.go · 305 LOCcassandra/cqlclient.gogo.temporal.io/server/tools/cassandra/handler.go · 233 LOCcassandra/handler.gogo.temporal.io/server/tools/cassandra/main.go · 273 LOCcassandra/main.gogo.temporal.io/server/tools/cassandra/setup_task_tests.go · 39 LOCcassandra/setup_task_tes…go.temporal.io/server/tools/cassandra/update_task_tests.go · 39 LOCcassandra/update_task_te…go.temporal.io/server/tools/cassandra/version_tests.go · 77 LOCcassandra/version_tests.…go.temporal.io/server/tools/common/schema/handler.go · 120 LOCschema/handler.gogo.temporal.io/server/tools/common/schema/mock_db.go · 48 LOCschema/mock_db.gogo.temporal.io/server/tools/common/schema/setuptask.go · 129 LOCschema/setuptask.gogo.temporal.io/server/tools/common/schema/test/dbtest.go · 154 LOCtest/dbtest.gogo.temporal.io/server/tools/common/schema/test/setuptest.go · 151 LOCtest/setuptest.gogo.temporal.io/server/tools/common/schema/test/updatetest.go · 161 LOCtest/updatetest.gogo.temporal.io/server/tools/common/schema/types.go · 180 LOCschema/types.gogo.temporal.io/server/tools/common/schema/updatetask.go · 431 LOCschema/updatetask.gogo.temporal.io/server/tools/sql/clitest/setup_task_tests.go · 116 LOCclitest/setup_task_tests…go.temporal.io/server/tools/sql/clitest/update_task_tests.go · 92 LOCclitest/update_task_test…go.temporal.io/server/tools/sql/clitest/version_tests.go · 122 LOCclitest/version_tests.gogo.temporal.io/server/tools/sql/conn.go · 110 LOCsql/conn.gogo.temporal.io/server/tools/sql/handler.go · 182 LOCsql/handler.gogo.temporal.io/server/tools/sql/main.go · 222 LOCsql/main.goTestOperatorServiceMetadata · introduced test · go.temporal.io/server/common/api/TestOperatorServiceMetadataTestOperatorServiceMetad…TestWorkflowServiceMetadata · introduced test · go.temporal.io/server/common/api/TestWorkflowServiceMetadataTestWorkflowServiceMetad…TestSchemaDirs · introduced test · go.temporal.io/server/schema/TestSchemaDirsTestSchemaDirsTestCreateKeyspaceError · introduced test · go.temporal.io/server/tools/cassandra/TestHandlerTestSuite/TestCreateKeyspaceErrorTestCreateKeyspaceErrorTestDropKeyspaceError · introduced test · go.temporal.io/server/tools/cassandra/TestHandlerTestSuite/TestDropKeyspaceErrorTestDropKeyspaceErrorTestValidateSetupConfig · introduced test · go.temporal.io/server/tools/common/schema/TestHandlerTestSuite/TestValidateSetupConfigTestValidateSetupConfigTestValidateUpdateConfig · introduced test · go.temporal.io/server/tools/common/schema/TestHandlerTestSuite/TestValidateUpdateConfigTestValidateUpdateConfigTestCreateDatabase · introduced test · go.temporal.io/server/tools/tests/TestMySQLSetupSchemaTestSuite/TestCreateDatabaseTestCreateDatabaseTestCreateDatabaseIdempotent · introduced test · go.temporal.io/server/tools/tests/TestMySQLSetupSchemaTestSuite/TestCreateDatabaseIdempotentTestCreateDatabaseIdempo…TestSetupSchema · introduced test · go.temporal.io/server/tools/tests/TestMySQLSetupSchemaTestSuite/TestSetupSchemaTestSetupSchemaTestDryrun · introduced test · go.temporal.io/server/tools/tests/TestMySQLUpdateSchemaTestSuite/TestDryrunTestDryrunTestUpdateSchema · introduced test · go.temporal.io/server/tools/tests/TestMySQLUpdateSchemaTestSuite/TestUpdateSchemaTestUpdateSchemaTestVisibilityDryrun · introduced test · go.temporal.io/server/tools/tests/TestMySQLUpdateSchemaTestSuite/TestVisibilityDryrunTestVisibilityDryrunTestVerifyCompatibleVersion · introduced test · go.temporal.io/server/tools/tests/TestMySQLVersionTestSuite/TestVerifyCompatibleVersionTestVerifyCompatibleVers…TestCreateDatabase · introduced test · go.temporal.io/server/tools/tests/TestPostgres/TestPostgreSQLSetupSchemaTestSuite/TestCreateDatabaseTestCreateDatabaseTestCreateDatabaseIdempotent · introduced test · go.temporal.io/server/tools/tests/TestPostgres/TestPostgreSQLSetupSchemaTestSuite/TestCreateDatabaseIdempotentTestCreateDatabaseIdempo…TestSetupSchema · introduced test · go.temporal.io/server/tools/tests/TestPostgres/TestPostgreSQLSetupSchemaTestSuite/TestSetupSchemaTestSetupSchemaTestDryrun · introduced test · go.temporal.io/server/tools/tests/TestPostgres/TestPostgreSQLUpdateSchemaTestSuite/TestDryrunTestDryrunTestUpdateSchema · introduced test · go.temporal.io/server/tools/tests/TestPostgres/TestPostgreSQLUpdateSchemaTestSuite/TestUpdateSchemaTestUpdateSchemaTestVisibilityDryrun · introduced test · go.temporal.io/server/tools/tests/TestPostgres/TestPostgreSQLUpdateSchemaTestSuite/TestVisibilityDryrunTestVisibilityDryrunTestVerifyCompatibleVersion · introduced test · go.temporal.io/server/tools/tests/TestPostgres/TestPostgreSQLVersionTestSuite/TestVerifyCompatibleVersionTestVerifyCompatibleVers…TestCreateDatabase · introduced test · go.temporal.io/server/tools/tests/TestPostgresPGX/TestPostgreSQLSetupSchemaTestSuite/TestCreateDatabaseTestCreateDatabaseTestCreateDatabaseIdempotent · introduced test · go.temporal.io/server/tools/tests/TestPostgresPGX/TestPostgreSQLSetupSchemaTestSuite/TestCreateDatabaseIdempotentTestCreateDatabaseIdempo…TestSetupSchema · introduced test · go.temporal.io/server/tools/tests/TestPostgresPGX/TestPostgreSQLSetupSchemaTestSuite/TestSetupSchemaTestSetupSchemaTestDryrun · introduced test · go.temporal.io/server/tools/tests/TestPostgresPGX/TestPostgreSQLUpdateSchemaTestSuite/TestDryrunTestDryrunTestUpdateSchema · introduced test · go.temporal.io/server/tools/tests/TestPostgresPGX/TestPostgreSQLUpdateSchemaTestSuite/TestUpdateSchemaTestUpdateSchemaTestVisibilityDryrun · introduced test · go.temporal.io/server/tools/tests/TestPostgresPGX/TestPostgreSQLUpdateSchemaTestSuite/TestVisibilityDryrunTestVisibilityDryrunTestVerifyCompatibleVersion · introduced test · go.temporal.io/server/tools/tests/TestPostgresPGX/TestPostgreSQLVersionTestSuite/TestVerifyCompatibleVersionTestVerifyCompatibleVers…TestCreateKeyspace · introduced test · go.temporal.io/server/tools/tests/TestSetupCQLSchemaTestSuite/TestCreateKeyspaceTestCreateKeyspaceTestSetupSchema · introduced test · go.temporal.io/server/tools/tests/TestSetupCQLSchemaTestSuite/TestSetupSchemaTestSetupSchemaTestDryrun · introduced test · go.temporal.io/server/tools/tests/TestUpdateCQLSchemaTestSuite/TestDryrunTestDryrunTestUpdateSchema · introduced test · go.temporal.io/server/tools/tests/TestUpdateCQLSchemaTestSuite/TestUpdateSchemaTestUpdateSchemaTestVerifyCompatibleVersion · introduced test · go.temporal.io/server/tools/tests/TestVersionTestSuite/TestVerifyCompatibleVersionTestVerifyCompatibleVers…Focused concept · embed.go ×5 · 14 introduced LOCembed.go ×5

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.

1 test introduced at this concept.

Introduced code

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

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

go.temporal.io/server/schema/embed.go 14 introduced LOC · 5 ranges

Open complete file

19
20 // PathsByDir returns a list of paths to directories within the schema subdirectory that have versioned schemas in them
21 > func PathsByDir(dbSubDir string) []string { embed.go
22 > logger := log.NewCLILogger()
23 > efs := Assets()
24 > dirs := make([]string, 0)
25 > err := fs.WalkDir(efs, dbSubDir, func(path string, d fs.DirEntry, err error) error {
26 > if err != nil {
27 return err
28 }
29 > if d.IsDir() { embed.go
30 > if d.Name() == "versioned" {
31 > dirs = append(dirs, filepath.ToSlash(filepath.Dir(path)))
32 > return fs.SkipDir
33 > }
34 }
35 > return nil embed.go
36 })
37 > if err != nil { embed.go
38 logger.Error("error walking embedded schema file system tree, could not generate valid paths", tag.Error(err))
39 }
40 > return dirs embed.go
41 }
42