ORM::ActiveRecord

Object-relational mapping module

ORM::ActiveRecord

ORM::ActiveRecord is an object-relational mapping module for Raku that mostly follows the Active Record Pattern.

Documentation

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

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 for more examples.

Build Status

License

Copyright (c) 2019-2026 Greg Donald

This software is licensed under the Artistic License 2.0.

ORM::ActiveRecord v0.9.2

Object-relational mapping module

Authors

  • Greg Donald

License

Artistic-2.0

Dependencies

DBIishJSON::TinyLog::AsyncYAMLishOpenSSLBase64

Provides

  • ORM::ActiveRecord::Adapter
  • ORM::ActiveRecord::Adapter::MySql
  • ORM::ActiveRecord::Adapter::Pg
  • ORM::ActiveRecord::Adapter::Sql
  • ORM::ActiveRecord::Adapter::Sql::AdvisoryLocks
  • ORM::ActiveRecord::Adapter::Sql::Aggregates
  • ORM::ActiveRecord::Adapter::Sql::Builders
  • ORM::ActiveRecord::Adapter::Sql::Ddl
  • ORM::ActiveRecord::Adapter::Sql::Exec
  • ORM::ActiveRecord::Adapter::Sql::Guards
  • ORM::ActiveRecord::Adapter::Sql::Transactions
  • ORM::ActiveRecord::Adapter::Sqlite
  • ORM::ActiveRecord::Connection::Pool
  • ORM::ActiveRecord::Connection::Registry
  • ORM::ActiveRecord::Connection::Switching
  • ORM::ActiveRecord::DB
  • ORM::ActiveRecord::Errors::Error
  • ORM::ActiveRecord::Errors::Errors
  • ORM::ActiveRecord::Errors::X
  • ORM::ActiveRecord::Instrumentation::LogSubscriber
  • ORM::ActiveRecord::Instrumentation::Notifications
  • ORM::ActiveRecord::Instrumentation::QueryLogs
  • ORM::ActiveRecord::Model
  • ORM::ActiveRecord::Model::Attributes
  • ORM::ActiveRecord::Model::Bulk
  • ORM::ActiveRecord::Model::Callbacks
  • ORM::ActiveRecord::Model::Cloning
  • ORM::ActiveRecord::Model::DirtyTracking
  • ORM::ActiveRecord::Model::Discard
  • ORM::ActiveRecord::Model::Encryption
  • ORM::ActiveRecord::Model::Enum
  • ORM::ActiveRecord::Model::Finders
  • ORM::ActiveRecord::Model::Inheritance
  • ORM::ActiveRecord::Model::Normalization
  • ORM::ActiveRecord::Model::PrimaryKey
  • ORM::ActiveRecord::Model::RawSql
  • ORM::ActiveRecord::Model::Reflection
  • ORM::ActiveRecord::Model::Relations
  • ORM::ActiveRecord::Model::Secure
  • ORM::ActiveRecord::Model::Serialization
  • ORM::ActiveRecord::Model::StatePredicates
  • ORM::ActiveRecord::Model::StrictLoading
  • ORM::ActiveRecord::Model::Suppressor
  • ORM::ActiveRecord::Model::Typing
  • ORM::ActiveRecord::Relation::Collection
  • ORM::ActiveRecord::Relation::Query
  • ORM::ActiveRecord::Relation::Query::Aggregations
  • ORM::ActiveRecord::Relation::Query::Async
  • ORM::ActiveRecord::Relation::Query::Batching
  • ORM::ActiveRecord::Relation::Query::Bulk
  • ORM::ActiveRecord::Relation::Query::Conditions
  • ORM::ActiveRecord::Relation::Query::Finders
  • ORM::ActiveRecord::Relation::Query::Joins
  • ORM::ActiveRecord::Relation::Query::Json
  • ORM::ActiveRecord::Relation::Query::Like
  • ORM::ActiveRecord::Relation::Query::Modifiers
  • ORM::ActiveRecord::Relation::Query::Predicates
  • ORM::ActiveRecord::Relation::Query::Preloader
  • ORM::ActiveRecord::Relation::Query::Sql
  • ORM::ActiveRecord::Relation::Scope
  • ORM::ActiveRecord::Relation::Scopes
  • ORM::ActiveRecord::Schema::Cache
  • ORM::ActiveRecord::Schema::DbReady
  • ORM::ActiveRecord::Schema::DbTasks
  • ORM::ActiveRecord::Schema::Dumper
  • ORM::ActiveRecord::Schema::Field
  • ORM::ActiveRecord::Schema::Generator
  • ORM::ActiveRecord::Schema::Migrate
  • ORM::ActiveRecord::Schema::Migration
  • ORM::ActiveRecord::Schema::WorkerDbs
  • ORM::ActiveRecord::Support::Colors
  • ORM::ActiveRecord::Support::Crypto
  • ORM::ActiveRecord::Support::DatabaseUrl
  • ORM::ActiveRecord::Support::Environment
  • ORM::ActiveRecord::Support::I18n
  • ORM::ActiveRecord::Support::Log
  • ORM::ActiveRecord::Support::Message
  • ORM::ActiveRecord::Support::Runtime
  • ORM::ActiveRecord::Support::Secrets
  • ORM::ActiveRecord::Support::Spell
  • ORM::ActiveRecord::Support::TestSkip
  • ORM::ActiveRecord::Support::Utils
  • ORM::ActiveRecord::Support::Version
  • ORM::ActiveRecord::Support::WorkerDb
  • ORM::ActiveRecord::Testing::DatabaseCleaner
  • ORM::ActiveRecord::Testing::Fixtures
  • ORM::ActiveRecord::Testing::Transaction
  • ORM::ActiveRecord::Type
  • ORM::ActiveRecord::Type::Encrypted
  • ORM::ActiveRecord::Type::Yaml
  • ORM::ActiveRecord::Validations::Validator
  • ORM::ActiveRecord::Validations::Validators

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.