https://github.com/gdonald/orm-activerecord
ORM::ActiveRecord is an object-relational mapping module for Raku
https://github.com/gdonald/orm-activerecord
activerecord database migration model object orm raku relational validation
Last synced: about 1 month ago
JSON representation
ORM::ActiveRecord is an object-relational mapping module for Raku
- Host: GitHub
- URL: https://github.com/gdonald/orm-activerecord
- Owner: gdonald
- License: artistic-2.0
- Created: 2019-01-18T00:47:04.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2026-05-23T21:45:50.000Z (about 1 month ago)
- Last Synced: 2026-05-23T23:22:29.247Z (about 1 month ago)
- Topics: activerecord, database, migration, model, object, orm, raku, relational, validation
- Language: Raku
- Homepage: https://gdonald.github.io/ORM-ActiveRecord/
- Size: 1.81 MB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ORM::ActiveRecord
ORM::ActiveRecord is an [object-relational mapping](https://en.wikipedia.org/wiki/Object-relational_mapping) module for Raku that *mostly* follows the [Active Record Pattern](https://en.wikipedia.org/wiki/Active_record_pattern).
## Documentation
[https://gdonald.github.io/ORM-ActiveRecord/](https://gdonald.github.io/ORM-ActiveRecord/)
## Install using zef
```
zef install --/test ORM::ActiveRecord
```
`--/test` is suggested because you probably don't have a test database setup.
## Simple Example
```perl6
my $user = User.create({fname => 'Greg'});
my $page = Page.create({:$user, name => 'Rakuist'});
say $user.pages.first.name;
Rakuist
say $page.user.fname;
Greg
my $alfred = User.create({fname => 'Fred'});
$page.update({user => $fred});
say $page.user.fname;
Fred
```
Please see the [documentation](https://gdonald.github.io/ORM-ActiveRecord/) for more examples.
## Build Status
[](https://github.com/gdonald/ORM-ActiveRecord/actions)
### License
Copyright (c) 2019-2026 Greg Donald
This software is licensed under the Artistic License 2.0.
[](https://github.com/gdonald/ORM-ActiveRecord/blob/master/LICENSE)