Skip to content

[SPEC-005] Suporte a SQLite em Database::connect() (feat) - #27

Merged
code-cfernandes merged 1 commit into
mainfrom
feat/SPEC-005-database-sqlite
Oct 9, 2026
Merged

code-cfernandes merged 1 commit into
mainfrom
feat/SPEC-005-database-sqlite

Conversation

@code-cfernandes

Copy link
Copy Markdown
Member

Resumo

Database::connect() passa a suportar o driver sqlite (via database =
caminho ou :memory:), além de mysql/mariadb/pgsql via host/port.

Mudanças

  • src/Database/Database.php: branch sqlite no DSN + docblock.
  • tests/Database/DatabaseTest.php: 2 testes novos (conexão + transação sqlite).

Como testar

vendor/bin/phpunit --testsuite=CI
composer cs:check
vendor/bin/phpstan analyse src/Database/Database.php --level=9

Versionamento (SemVer)

MINOR → 2.2.0 (novo driver suportado).

Documentação

Docblock do Database atualizado; não há doc de usuário específica para Database (gate doc-review aprovado).

Instruções de merge

  • Squash and merge para main.

- Database now supports driver=sqlite (database = path or :memory:) in
  addition to mysql/mariadb/pgsql via host/port.

Refs: SPEC-005 (#19)
@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

🚀 Release Readiness Report - PivotPHP Core v2.1.1

✅ All Checks Passed!

  • Version: 2.1.1
  • PHPStan: Level 9, 0 errors
  • Tests: All tests passing
  • Code Style: PSR-12 compliant
  • PHP Compatibility: 8.1 - 8.4
  • Dependencies: All valid
  • Scripts: Consolidated and optimized

📦 Ready for Publication

The project is ready to be tagged and released!

Next Steps:

  1. Create a new tag: git tag -a v2.1.1 -m 'Release v2.1.1'
  2. Push the tag: git push origin v2.1.1
  3. The release workflow will automatically create a GitHub release
  4. Packagist will be automatically updated

@code-cfernandes
code-cfernandes merged commit a7f3602 into main Oct 9, 2026
6 checks passed
@code-cfernandes
code-cfernandes deleted the feat/SPEC-005-database-sqlite branch October 9, 2026 02:23
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.

1 participant