Skip to content

Commit

Permalink
refactor!: Remove old dbrunner completely
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Nov 27, 2024
1 parent ed671e6 commit 7c5757b
Show file tree
Hide file tree
Showing 20 changed files with 46 additions and 597 deletions.
5 changes: 0 additions & 5 deletions config/packages/cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ framework:

app: cache.adapter.redis_tag_aware
default_redis_provider: "%app.redis_uri%"

pools:
cache.dbrunner:
adapter: cache.adapter.redis_tag_aware
default_lifetime: "12 hour"
# Unique name of your app: used to compute stable namespaces for cache keys.
#prefix_seed: your_vendor_name/app_name

Expand Down
3 changes: 0 additions & 3 deletions frankenphp/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ if [ "$1" = 'frankenphp' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
fi
fi

echo "Cleaning up dbrunner cache..."
php bin/console cache:pool:clear cache.dbrunner || true

echo "Updating Meilisearch indexes..."
php bin/console meili:clear || true
php bin/console meili:import --update-settings || true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
namespace App\Entity\ChallengeDto;

use App\Entity\SqlRunnerDto\SqlRunnerResult;
use App\Service\SqlRunnerService;
use Symfony\Component\Translation\TranslatableMessage;

/**
* A DTO for the result of a query that may contain the error from DbRunner.
* A DTO for the result of a query that may contain the error from {@link SqlRunnerService}.
*
* If there is no error, the errorCode will be 0.
*/
class FallableQueryResultDto
class FallableSqlRunnerResult
{
public ?SqlRunnerResult $result = null;
public ?TranslatableMessage $errorMessage = null;
Expand Down
36 changes: 0 additions & 36 deletions src/Entity/ChallengeDto/QueryResultDto.php

This file was deleted.

128 changes: 0 additions & 128 deletions src/Service/DbRunner.php

This file was deleted.

54 changes: 0 additions & 54 deletions src/Service/DbRunnerComparer.php

This file was deleted.

37 changes: 0 additions & 37 deletions src/Service/DbRunnerService.php

This file was deleted.

64 changes: 0 additions & 64 deletions src/Service/Processes/DbRunnerProcessService.php

This file was deleted.

Loading

0 comments on commit 7c5757b

Please sign in to comment.