efreesen / active_repository Goto Github PK
View Code? Open in Web Editor NEWAn implementation of repository pattern that can connect with any ORM
License: GNU Lesser General Public License v3.0
An implementation of repository pattern that can connect with any ORM
License: GNU Lesser General Public License v3.0
I am not able to find way how to remove object - destroy or delete.
ActiveRepository is running too slow!!!
Implement an association type that uses a third repository as a many to many table.
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')
Implement callbacks methods, like before_ and after_, and include a destroy method.
Right now it is not possible to create queries joining two repositories.
Implement scopes like in ActiveRecord.
Add support for a method that accepts an array or a string containing the fields to sort the resulting collection.
Uniqueness validation does not work with a scope.
Add this feature to the uniqueness validation module.
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)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.