Skip to content

Add procs and functions #5

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

Merged
merged 5 commits into from
Jun 19, 2023
Merged

Add procs and functions #5

merged 5 commits into from
Jun 19, 2023

Conversation

dave-mills
Copy link
Member

This PR adds the ability to run / update functions and procdures by including .sql script files inside the database_path('procedures') folder.

  • The updatesql artisan command is updated, so after it recreates the views based on queries inside the database_path('views') folder, it will run all .sql scripts inside the procedures folder.
  • When the package is first installed, it creates the procedures folder alongside the views folder, and includes an example function that creates a basic "multiply" mysql procedure.

@dave-mills dave-mills requested a review from dan-tang-ssd June 16, 2023 11:01
 - db::statement appears to fail on creating procedures
@dave-mills dave-mills merged commit f661e1b into main Jun 19, 2023
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.

2 participants