diff --git a/.github/workflows/db_adapter_ci.yml b/.github/workflows/db_adapter_ci.yml index 2af5efd..28be408 100644 --- a/.github/workflows/db_adapter_ci.yml +++ b/.github/workflows/db_adapter_ci.yml @@ -6,6 +6,7 @@ on: types: [opened, synchronize, reopened] paths: - "apps/db-adapter**" + - ".github/workflows/db_adapter_ci.yml" jobs: golangci: diff --git a/apps/db-handler/.env.example b/apps/db-adapter/.env.example similarity index 68% rename from apps/db-handler/.env.example rename to apps/db-adapter/.env.example index a6f62e5..a3cabe5 100644 --- a/apps/db-handler/.env.example +++ b/apps/db-adapter/.env.example @@ -1,3 +1,3 @@ MEMGRAPH_URI="bolt://localhost:7687" MEMGRAPH_USER="memgraph" -MEMGRAPH_PASSWORD="memgraph"5 \ No newline at end of file +MEMGRAPH_PASSWORD="memgraph" \ No newline at end of file diff --git a/apps/db-handler/.golangci.yml b/apps/db-adapter/.golangci.yml similarity index 100% rename from apps/db-handler/.golangci.yml rename to apps/db-adapter/.golangci.yml diff --git a/apps/db-handler/dockerfile b/apps/db-adapter/dockerfile similarity index 100% rename from apps/db-handler/dockerfile rename to apps/db-adapter/dockerfile diff --git a/apps/db-handler/go.mod b/apps/db-adapter/go.mod similarity index 100% rename from apps/db-handler/go.mod rename to apps/db-adapter/go.mod diff --git a/apps/db-handler/go.sum b/apps/db-adapter/go.sum similarity index 100% rename from apps/db-handler/go.sum rename to apps/db-adapter/go.sum diff --git a/apps/db-handler/internal/api/authorization_by_id.go b/apps/db-adapter/internal/api/authorization_by_id.go similarity index 100% rename from apps/db-handler/internal/api/authorization_by_id.go rename to apps/db-adapter/internal/api/authorization_by_id.go diff --git a/apps/db-handler/internal/api/generate.go b/apps/db-adapter/internal/api/generate.go similarity index 100% rename from apps/db-handler/internal/api/generate.go rename to apps/db-adapter/internal/api/generate.go diff --git a/apps/db-handler/internal/api/oapi-codegen-cfg.yaml b/apps/db-adapter/internal/api/oapi-codegen-cfg.yaml similarity index 100% rename from apps/db-handler/internal/api/oapi-codegen-cfg.yaml rename to apps/db-adapter/internal/api/oapi-codegen-cfg.yaml diff --git a/apps/db-handler/internal/api/person.go b/apps/db-adapter/internal/api/person.go similarity index 100% rename from apps/db-handler/internal/api/person.go rename to apps/db-adapter/internal/api/person.go diff --git a/apps/db-handler/internal/api/person_and_relationship.go b/apps/db-adapter/internal/api/person_and_relationship.go similarity index 100% rename from apps/db-handler/internal/api/person_and_relationship.go rename to apps/db-adapter/internal/api/person_and_relationship.go diff --git a/apps/db-handler/internal/api/person_family_tree.go b/apps/db-adapter/internal/api/person_family_tree.go similarity index 100% rename from apps/db-handler/internal/api/person_family_tree.go rename to apps/db-adapter/internal/api/person_family_tree.go diff --git a/apps/db-handler/internal/api/person_google.go b/apps/db-adapter/internal/api/person_google.go similarity index 100% rename from apps/db-handler/internal/api/person_google.go rename to apps/db-adapter/internal/api/person_google.go diff --git a/apps/db-handler/internal/api/person_recipes.go b/apps/db-adapter/internal/api/person_recipes.go similarity index 100% rename from apps/db-handler/internal/api/person_recipes.go rename to apps/db-adapter/internal/api/person_recipes.go diff --git a/apps/db-handler/internal/api/recipe_relationship.go b/apps/db-adapter/internal/api/recipe_relationship.go similarity index 100% rename from apps/db-handler/internal/api/recipe_relationship.go rename to apps/db-adapter/internal/api/recipe_relationship.go diff --git a/apps/db-handler/internal/api/recipes.go b/apps/db-adapter/internal/api/recipes.go similarity index 100% rename from apps/db-handler/internal/api/recipes.go rename to apps/db-adapter/internal/api/recipes.go diff --git a/apps/db-handler/internal/api/relationship.go b/apps/db-adapter/internal/api/relationship.go similarity index 100% rename from apps/db-handler/internal/api/relationship.go rename to apps/db-adapter/internal/api/relationship.go diff --git a/apps/db-handler/internal/api/server.go b/apps/db-adapter/internal/api/server.go similarity index 100% rename from apps/db-handler/internal/api/server.go rename to apps/db-adapter/internal/api/server.go diff --git a/apps/db-handler/internal/api/server_test.go b/apps/db-adapter/internal/api/server_test.go similarity index 100% rename from apps/db-handler/internal/api/server_test.go rename to apps/db-adapter/internal/api/server_test.go diff --git a/apps/db-handler/main.go b/apps/db-adapter/main.go similarity index 100% rename from apps/db-handler/main.go rename to apps/db-adapter/main.go diff --git a/apps/db-handler/pkg/file_exists.go b/apps/db-adapter/pkg/file_exists.go similarity index 100% rename from apps/db-handler/pkg/file_exists.go rename to apps/db-adapter/pkg/file_exists.go diff --git a/apps/db-handler/pkg/file_exists_test.go b/apps/db-adapter/pkg/file_exists_test.go similarity index 100% rename from apps/db-handler/pkg/file_exists_test.go rename to apps/db-adapter/pkg/file_exists_test.go diff --git a/apps/db-handler/pkg/gin/healthcheck/health_check.go b/apps/db-adapter/pkg/gin/healthcheck/health_check.go similarity index 100% rename from apps/db-handler/pkg/gin/healthcheck/health_check.go rename to apps/db-adapter/pkg/gin/healthcheck/health_check.go diff --git a/apps/db-handler/pkg/gin/healthcheck/health_check_test.go b/apps/db-adapter/pkg/gin/healthcheck/health_check_test.go similarity index 100% rename from apps/db-handler/pkg/gin/healthcheck/health_check_test.go rename to apps/db-adapter/pkg/gin/healthcheck/health_check_test.go diff --git a/apps/db-handler/pkg/memgraph/create_person.go b/apps/db-adapter/pkg/memgraph/create_person.go similarity index 100% rename from apps/db-handler/pkg/memgraph/create_person.go rename to apps/db-adapter/pkg/memgraph/create_person.go diff --git a/apps/db-handler/pkg/memgraph/create_relationship.go b/apps/db-adapter/pkg/memgraph/create_relationship.go similarity index 100% rename from apps/db-handler/pkg/memgraph/create_relationship.go rename to apps/db-adapter/pkg/memgraph/create_relationship.go diff --git a/apps/db-handler/pkg/memgraph/create_relationship_and_person.go b/apps/db-adapter/pkg/memgraph/create_relationship_and_person.go similarity index 100% rename from apps/db-handler/pkg/memgraph/create_relationship_and_person.go rename to apps/db-adapter/pkg/memgraph/create_relationship_and_person.go diff --git a/apps/db-handler/pkg/memgraph/create_schema.go b/apps/db-adapter/pkg/memgraph/create_schema.go similarity index 100% rename from apps/db-handler/pkg/memgraph/create_schema.go rename to apps/db-adapter/pkg/memgraph/create_schema.go diff --git a/apps/db-handler/pkg/memgraph/cypher_verify_string.go b/apps/db-adapter/pkg/memgraph/cypher_verify_string.go similarity index 100% rename from apps/db-handler/pkg/memgraph/cypher_verify_string.go rename to apps/db-adapter/pkg/memgraph/cypher_verify_string.go diff --git a/apps/db-handler/pkg/memgraph/delete_person.go b/apps/db-adapter/pkg/memgraph/delete_person.go similarity index 100% rename from apps/db-handler/pkg/memgraph/delete_person.go rename to apps/db-adapter/pkg/memgraph/delete_person.go diff --git a/apps/db-handler/pkg/memgraph/delete_relationship.go b/apps/db-adapter/pkg/memgraph/delete_relationship.go similarity index 100% rename from apps/db-handler/pkg/memgraph/delete_relationship.go rename to apps/db-adapter/pkg/memgraph/delete_relationship.go diff --git a/apps/db-handler/pkg/memgraph/init_database.go b/apps/db-adapter/pkg/memgraph/init_database.go similarity index 100% rename from apps/db-handler/pkg/memgraph/init_database.go rename to apps/db-adapter/pkg/memgraph/init_database.go diff --git a/apps/db-handler/pkg/memgraph/model.go b/apps/db-adapter/pkg/memgraph/model.go similarity index 100% rename from apps/db-handler/pkg/memgraph/model.go rename to apps/db-adapter/pkg/memgraph/model.go diff --git a/apps/db-handler/pkg/memgraph/model_test.go b/apps/db-adapter/pkg/memgraph/model_test.go similarity index 100% rename from apps/db-handler/pkg/memgraph/model_test.go rename to apps/db-adapter/pkg/memgraph/model_test.go diff --git a/apps/db-handler/pkg/memgraph/queries/create_directed_relationship.cypher b/apps/db-adapter/pkg/memgraph/queries/create_directed_relationship.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/create_directed_relationship.cypher rename to apps/db-adapter/pkg/memgraph/queries/create_directed_relationship.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/create_person.cypher b/apps/db-adapter/pkg/memgraph/queries/create_person.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/create_person.cypher rename to apps/db-adapter/pkg/memgraph/queries/create_person.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/create_relationship.cypher b/apps/db-adapter/pkg/memgraph/queries/create_relationship.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/create_relationship.cypher rename to apps/db-adapter/pkg/memgraph/queries/create_relationship.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/create_two_directed_relationships.cypher b/apps/db-adapter/pkg/memgraph/queries/create_two_directed_relationships.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/create_two_directed_relationships.cypher rename to apps/db-adapter/pkg/memgraph/queries/create_two_directed_relationships.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/get_family_tree_by_id.cypher b/apps/db-adapter/pkg/memgraph/queries/get_family_tree_by_id.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/get_family_tree_by_id.cypher rename to apps/db-adapter/pkg/memgraph/queries/get_family_tree_by_id.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/get_people_by_properties.cypher b/apps/db-adapter/pkg/memgraph/queries/get_people_by_properties.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/get_people_by_properties.cypher rename to apps/db-adapter/pkg/memgraph/queries/get_people_by_properties.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/get_person_by_google_id.cypher b/apps/db-adapter/pkg/memgraph/queries/get_person_by_google_id.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/get_person_by_google_id.cypher rename to apps/db-adapter/pkg/memgraph/queries/get_person_by_google_id.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/get_person_by_id.cypher b/apps/db-adapter/pkg/memgraph/queries/get_person_by_id.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/get_person_by_id.cypher rename to apps/db-adapter/pkg/memgraph/queries/get_person_by_id.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/get_relationship.cypher b/apps/db-adapter/pkg/memgraph/queries/get_relationship.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/get_relationship.cypher rename to apps/db-adapter/pkg/memgraph/queries/get_relationship.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/hard_delete_person_by_id.cypher b/apps/db-adapter/pkg/memgraph/queries/hard_delete_person_by_id.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/hard_delete_person_by_id.cypher rename to apps/db-adapter/pkg/memgraph/queries/hard_delete_person_by_id.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/schema.cypher b/apps/db-adapter/pkg/memgraph/queries/schema.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/schema.cypher rename to apps/db-adapter/pkg/memgraph/queries/schema.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/soft_delete_person_by_id.cypher b/apps/db-adapter/pkg/memgraph/queries/soft_delete_person_by_id.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/soft_delete_person_by_id.cypher rename to apps/db-adapter/pkg/memgraph/queries/soft_delete_person_by_id.cypher diff --git a/apps/db-handler/pkg/memgraph/queries/update_person.cypher b/apps/db-adapter/pkg/memgraph/queries/update_person.cypher similarity index 100% rename from apps/db-handler/pkg/memgraph/queries/update_person.cypher rename to apps/db-adapter/pkg/memgraph/queries/update_person.cypher diff --git a/apps/db-handler/pkg/memgraph/update_person.go b/apps/db-adapter/pkg/memgraph/update_person.go similarity index 100% rename from apps/db-handler/pkg/memgraph/update_person.go rename to apps/db-adapter/pkg/memgraph/update_person.go diff --git a/apps/db-handler/pkg/memgraph/verify_relationship.go b/apps/db-adapter/pkg/memgraph/verify_relationship.go similarity index 100% rename from apps/db-handler/pkg/memgraph/verify_relationship.go rename to apps/db-adapter/pkg/memgraph/verify_relationship.go diff --git a/apps/db-handler/pkg/setup_https_server.go b/apps/db-adapter/pkg/setup_https_server.go similarity index 100% rename from apps/db-handler/pkg/setup_https_server.go rename to apps/db-adapter/pkg/setup_https_server.go