public marks

PUBLIC MARKS with tag activerecord

2008

2007

Elixir - Elixir

by pvergain
About Elixir is a declarative layer on top of SQLAlchemy. It is a fairly thin wrapper, which provides the ability to define model objects following the Active Record design pattern, and using a DSL syntax similar to that of the Ruby on Rails ActiveRecord system. Elixir does not intend to replace SQLAlchemy's core features, but instead focuses on providing a simpler syntax for defining model objects when you do not need the full expressiveness of SQLAlchemy's manual mapper definitions. Example Here is a very short model definition example, so that you can see what the syntax look like. For some explanation and more complete examples, please have a look at the tutorial or at the examples page. class Person(Entity): has_field('name', Unicode(255)) has_many('addresses', of_kind='Address') class Address(Entity): has_field('email', String(128)) belongs_to('person', of_kind='Person') History In 2006, Jonathan LaCour discovered the fantastic SQLAlchemy project, and really liked its power and flexibility, but found that in many simple cases he would prefer a simpler and more attractive way to declare his model objects. As a result, Jonathan spent a few hours on a weekend to create the ActiveMapper SQLAlchemy extension. For a weekend's worth of work, it wasn't half bad, and gained a little bit of traction in the wild. But, over time, it became clear that ActiveMapper needed a lot of work to stabilize and become more useful. Later that year, Daniel Haus released his own layer on top of SQLAlchemy, called TurboEntity. TurboEntity solved some of the problems of ActiveMapper, and took a slightly different approach to the problem. TurboEntity also began to gain some ground and it became clear to both Daniel and Jonathan that they needed to work together. Around the same time, Gaëtan de Menten contacted both Jonathan and Daniel to reveal that he had been working on his own layer as well. A few weeks later, all three agreed to work together to create a replacement for TurboEntity and ActiveMapper using their collective experience and knowledge. The Name The Oxford English Dictionary defines Elixir as: "a magical or medicinal potion, a preparation that was supposedly able to change metals into gold, sought by alchemists." The Future The eventual goal of the Elixir project is to become an official SQLAlchemy extension. But, before we submit elixir for inclusion within SQLAlchemy, we want the opportunity to solicit feedback and contributions from users to make sure that we have ironed out any bugs, missing features, syntax changes, or documentation deficiencies.

2006

#2990: scope_constraints.patch - Ruby on Rails - Trac

by Ganf
Avoir plusieurs "with_scope" imbriqués dans les modèles de ruby on rails

PUBLIC TAGS related to tag activerecord

3887 +   @readreview +   array +   cache +   code +   codeigniter +   coding +   composite +   console +   database +   debug +   delicious +   development +   diagram +   Elixir +   extensions +   for:pedro.custodio +   for:simonrozet +   foreign +   gem +   guide +   howto +   javascript +   key +   keys +   merb +   mysql +   optimization +   orm +   patch +   perf +   php +   plugin +   pretty +   print +   programming +   python +   rails +   rest +   restful +   ror +   ruby +   rubyonrails +   scope +   server +   sharding +   slug +   unicode +   utf-8 +   webserver +  

Active users

pyros
last mark : 14/12/2008 10:12

srt
last mark : 25/03/2008 18:04

webs
last mark : 14/01/2008 12:57

krachot
last mark : 02/08/2007 08:35

Ganf
last mark : 11/04/2007 11:39

pvergain
last mark : 03/03/2007 09:02

kemar
last mark : 08/01/2007 12:43

gvlx
last mark : 23/11/2006 02:10

simonrozet
last mark : 31/07/2006 00:44

sunny
last mark : 30/07/2006 12:31