Git Product home page Git Product logo

active_repository's People

Contributors

bryant1410 avatar efreesen avatar fudali avatar tomash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

active_repository's Issues

Has many :through

Implement an association type that uses a third repository as a many to many table.

update data with only symbolized keys

When I create object (for example User) I can pass:

user = User.create('name' => 'tester')

but when I want update this object, I must use hash with symbols

user.update_attributes(name: 'tester')

because update_attributes with string key doen't work:

user.update_attributes('name' => 'tester')

Add callbacks

Implement callbacks methods, like before_ and after_, and include a destroy method.

Scopes

Implement scopes like in ActiveRecord.

Add order support

Add support for a method that accepts an array or a string containing the fields to sort the resulting collection.

Curious about roadmap

Just came across your project while looking for a gem that supports database agnostic persistence. I need to find something that supports both SQL and No-SQL data stores. Looks like your gem has a nice start on this. I think the repository pattern is a nice solution for this problem. However, it looks like your gem requires you to write models for each database/ORM that you want to support. What are your plans for this gem? Do you have any plans to make it so you can write models which aren't tied to an ORM (so you can write the model once)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.