Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bot] Run grit migration: Apply a GritQL pattern #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grit-app[bot]
Copy link

@grit-app grit-app bot commented Jan 23, 2024

⚠️ This migration is out of date with the main branch. Update with Grit ⚠️

⚠️ This pull request was auto-generated with Grit. ⚠️

This pull request was created with these settings:

  • Target branch: main
  • Source files: **/*
  • Preset pattern: add_pg_unit_test – PgTAP is a unit testing framework for Postgres. This pattern adds a unit test checking a procedure has been correctly defined.
Pattern body
engine marzano(0.1)
language sql

pattern add_unit_tests_for_procedures() {
   `CREATE PROCEDURE $proc_name($args) AS $decl $block;` where {
    $program += `

-- Check that '$proc_name' has been translated into valid plpgsql
SELECT has_function('$proc_name');
SELECT is_procedure('$proc_name');
SELECT function_lang_is('$proc_name', 'pgplsql' );
`
   }
}

add_unit_tests_for_procedures()

Tip

You can provide feedback to @gritagent and it will update this pull request with your suggestions.

<!-- grit:execution_id:bb19b4ce-8d10-44a3-9af8-98488ad65e40 -->
@grit-app grit-app bot force-pushed the grit/88af3783-505a-4562-b2cd-17296b21be6c branch from 1d0f906 to cfd0f11 Compare January 23, 2024 03:30
Copy link
Author

grit-app bot commented Jan 23, 2024

Updated pull request with a migration run from base commit 6b687f9. View run

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants