Skip to content

feat: implement CompilePrune#55

Merged
almas-x merged 1 commit intomasterfrom
almas/chore
Jul 2, 2025
Merged

feat: implement CompilePrune#55
almas-x merged 1 commit intomasterfrom
almas/chore

Conversation

@almas-x
Copy link
Contributor

@almas-x almas-x commented Jul 1, 2025

📑 Description

Resolve goravel/goravel#718

✅ Checks

  • Added test cases for my code

Copilot AI review requested due to automatic review settings July 1, 2025 10:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new CompilePrune method to the SQL grammar that generates a prune command.

  • Implements CompilePrune to produce the SQL for pruning.
  • Currently returns a hardcoded vacuum full statement.
  • Does not include tests or documentation for the new method.
Comments suppressed due to low confidence (2)

grammar.go:448

  • No tests were added for CompilePrune. Please add unit tests to verify that the correct SQL is generated for various inputs.
func (r *Grammar) CompilePrune(_ string) string {

grammar.go:448

  • Add a GoDoc comment above CompilePrune to explain its purpose, input parameter, and the SQL it returns.
func (r *Grammar) CompilePrune(_ string) string {

Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@almas-x almas-x merged commit 8892535 into master Jul 2, 2025
5 checks passed
@almas-x almas-x deleted the almas/chore branch July 2, 2025 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

migrate:fresh fails on SQLite

3 participants