Skip to content

feat: install DB,Orm,Schema,Seeder facades#1193

Merged
hwbrzzl merged 2 commits intomasterfrom
bowen/install-database
Sep 13, 2025
Merged

feat: install DB,Orm,Schema,Seeder facades#1193
hwbrzzl merged 2 commits intomasterfrom
bowen/install-database

Conversation

@hwbrzzl
Copy link
Contributor

@hwbrzzl hwbrzzl commented Sep 13, 2025

📑 Description

Relate goravel/goravel#612

image

✅ Checks

  • Added test cases for my code

@codecov
Copy link

codecov bot commented Sep 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.49%. Comparing base (20579c4) to head (42d1a31).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1193   +/-   ##
=======================================
  Coverage   69.49%   69.49%           
=======================================
  Files         229      229           
  Lines       14391    14391           
=======================================
  Hits        10001    10001           
  Misses       4032     4032           
  Partials      358      358           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hwbrzzl hwbrzzl force-pushed the bowen/install-database branch from 7c8b8ca to 42d1a31 Compare September 13, 2025 15:10
@hwbrzzl hwbrzzl marked this pull request as ready for review September 13, 2025 15:13
@hwbrzzl hwbrzzl requested a review from a team as a code owner September 13, 2025 15:13
Copilot AI review requested due to automatic review settings September 13, 2025 15:13
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

This PR adds database facade installation functionality by introducing DB, Orm, Schema, and Seeder facades to the Goravel framework setup system. The changes transform the static database configuration into a dynamic stub-based system that generates facade files and configuration based on module parameters.

  • Refactors database configuration from static content to dynamic template-based generation
  • Adds four new database facade stub generators (DB, Orm, Schema, Seeder)
  • Implements conditional installation/uninstallation logic for database facades

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
database/setup/stubs.go Adds Stubs struct with methods to generate database config, facades, and kernel templates
database/setup/setup.go Updates setup logic to use dynamic stubs and handle conditional facade installation/uninstallation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@hwbrzzl hwbrzzl merged commit 95fdf0c into master Sep 13, 2025
14 checks passed
@hwbrzzl hwbrzzl deleted the bowen/install-database branch September 13, 2025 15:17
alfanzain pushed a commit to alfanzain/goravel-framework that referenced this pull request Sep 15, 2025
* feat: install DB,Orm,Schema,Seeder facades

* optimize
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.

2 participants