ORM::ActiveRecord is an object-relational mapping module for Raku that mostly follows the Active Record Pattern.
https://gdonald.github.io/ORM-ActiveRecord/
zef install --/test ORM::ActiveRecord
--/test is suggested because you probably don't have a test database setup.
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;
FredPlease see the documentation for more examples.
Copyright (c) 2019-2026 Greg Donald
This software is licensed under the Artistic License 2.0.