Skip to content

jdmoody/HactiveRecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An implementation of many of the core features of ActiveRecord

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published