Skip to content

Add environment database support - #17

Merged
rtcoder merged 1 commit into
masterfrom
release/v0.13.0
Jun 17, 2026
Merged

Add environment database support#17
rtcoder merged 1 commit into
masterfrom
release/v0.13.0

Conversation

@rtcoder

@rtcoder rtcoder commented Jun 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • add zero-dependency .env loading during bootstrap
  • add .env.example with database connection settings and ignore local .env files
  • add native PDO database config, lazy database service, query result helpers, and transaction wrapper
  • add a fluent table query builder with select, where, ordering, limits, insert, update, and delete
  • add attribute-driven database models with PrimaryKey, Guarded, and Cast attributes
  • support model find, create, save, delete, hydrated casts, explicit guarded updates, and public column properties
  • update create:model stubs to extend the base Model and define table names
  • document .env configuration, database usage, query builder usage, and model conventions
  • cover env loading, DSN building, DB queries, query builder behavior, model casts, guarded fields, and model persistence with feature tests

Tests

  • composer validate --no-check-publish
  • composer dump-autoload
  • find src application tests -name '*.php' -print0 | xargs -0 -n1 php -l
  • composer test
  • php shift.php route:list
  • php shift.php health

@rtcoder rtcoder added the v0.13.0 Release v0.13.0 label Jun 17, 2026
@rtcoder
rtcoder merged commit aa7567e into master Jun 17, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v0.13.0 Release v0.13.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant