A promise-based ORM for Riak built on the raku Riak client. Version 3.1.2 supports has-and-belongs-to-many, has-many/belongs-to, and has-one relationships with or without inverses. It uses automatic integer ID generation per class and saves each attribute separately to avoid accidental overwrites. This hobby project is not actively maintained and has no recent updates.
npm install raku-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines User and Post models with associations, saves instances, and loads attributes from Riak.
Use instance.load('first_name', 'last_name') to load specific attributes.Use load_posts() instead of posts() to load associated objects.
Consider migrating to a more modern ORM or database solution.
Assign user.favorite_posts_ids = [postId1, postId2] to relate posts.
Ensure Riak is configured and accessible, and that raku is properly initialized.
Use 'import RakuOrm from 'raku-orm'' or 'import 'raku-orm' then class extends RakuOrm.
Run 'npm install raku-orm' in your project.
Call 'RakuOrm.init(User)' after defining the schema.