datamapper / dm-ar-finders Goto Github PK
View Code? Open in Web Editor NEWDataMapper plugin providing ActiveRecord-style finders
Home Page: http://datamapper.org/
License: MIT License
DataMapper plugin providing ActiveRecord-style finders
Home Page: http://datamapper.org/
License: MIT License
Model.find only takes one of 4 arguments right now: an id, :first, :last, or :all. If passed another argument (such as a hash), it simply returns nil.
The find method should either throw an error if it doesn't get it's expected input, or it should be expanded to map more of ActiveRecord's finder syntax onto DataMapper.
So I've decided to take a whack at getting find_by_sql working in a more AR-like fashion, since it appears to be a stopping block for several of us per earlier tickets.
Before getting too far down the wrong path, can you take a look at this spec in my dm-more branch?
http://github.com/nateware/dm-more/commit/e975899a490ef06c6ee559016683e2c235826ac2
Thanks,
Nate
Created by Nate Wiger - 2009-10-09 13:37:28 UTC
Original Lighthouse ticket: http://datamapper.lighthouseapp.com/projects/20609/tickets/1089
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.