ORM::ActiveRecord
The latest version of this documentation lives at https://gdonald.github.io/ORM-ActiveRecord/.
The homepage for ORM::ActiveRecord is https://github.com/gdonald/ORM-ActiveRecord.
Synopsis
ORM::ActiveRecord is an object-relational mapping module for Raku that mostly follows the Active Record Pattern.
It supports PostgreSQL, MySQL, and SQLite through a common adapter
layer. Application code is the same regardless of the backend; pick one with
DATABASE_URL or config/application.json. See Adapters.
Example Usage
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
Output:
1 2 3 | |
Install
ORM::ActiveRecord can be installed using the zef module installation tool:
1 | |
--/test is suggested because you probably don't have a test database setup.
You can of course setup a test database.