Skip to content
An implementation of many of the core features of ActiveRecord
Ruby Erlang
Branch: master
Clone or download
Latest commit 245c2c6 Apr 1, 2014
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/active_record_lite Implemented has_one_through association Feb 25, 2014
spec Implement MyAttrAccessor Class Feb 14, 2014
.rspec Implement MyAttrAccessor Class Feb 14, 2014
README.md Update README.md Apr 1, 2014
cats.db Implement MyAttrAccessor Class Feb 14, 2014
cats.sql Implement MyAttrAccessor Class Feb 14, 2014

README.md

HactiveRecord

Description

HactiveRecord uses Ruby metaprogramming to implement many of the core functionalities of Rails' ActiveRecord. The functionalities implemented include:

  • SQLObject similar to ActiveRecord::Base Model

    • Mass assignment capable #insert, #update, and #save methods to save SQLObjects to the database
    • ::all method returns all SQLObjects of a given table
    • ::find method returns a SQLObject of a specific id from its table
    • ::where method returns one or more SQLObjects that fit one or more given criteria
  • Associations

    • belongs_to, has_many, and has_one_through associations implemented
    • Associations follow ActiveRecord naming conventions
    • Associatons can take in an options hash for unconventional names
You can’t perform that action at this time.