Can you provide an example of a request that involves the kind of
synchronization you are looking for?
On Tuesday, January 6, 2015 7:23:48 AM UTC-5, Alan Evangelista wrote:
>
>
> In DAL it can be done like one single command:
>> db.define_table('my_items',
>> Field('name', 'string', leng
> In DAL it can be done like one single command:
> db.define_table('my_items',
> Field('name', 'string', length=100),
> Field('description', 'string', length=400),
> Field('priority', 'integer'),
> Field('creator_id', 'reference user'),
> Field('dept_i
In DAL it can be done like one single command:
db.define_table('my_items',
Field('name', 'string', length=100),
Field('description', 'string', length=400),
Field('priority', 'integer'),
Field('creator_id', 'reference user'),
Field('dept_id', 'reference d
On Tuesday, December 23, 2014 1:16:52 PM UTC-2, Alan Evangelista wrote:
>
>
> It might be easier if you provide a concrete example of what you are
>> trying to achieve (perhaps using the syntax of an existing ORM or using
>> pseudo-code) and explain how the DAL falls short.
>>
>
> Using SQLAlch
> It might be easier if you provide a concrete example of what you are
> trying to achieve (perhaps using the syntax of an existing ORM or using
> pseudo-code) and explain how the DAL falls short.
>
Using SQLAlchemy as data mapper below.
MyItem class (models.myitem):
class MyItem(object):
I suppose it depends on what you mean by this " application logic
completely independent from persistent data storage"
So you certainly can have that completely independent, though you wouldn't
persist anything. Is the idea that you'd update a memory representation of
objects only, and somehow y
It might be easier if you provide a concrete example of what you are trying
to achieve (perhaps using the syntax of an existing ORM or using
pseudo-code) and explain how the DAL falls short.
Anthony
On Sunday, December 14, 2014 2:54:42 PM UTC-5, Alan Evangelista wrote:
>
> Simple is a relative
Simple is a relative term, I should not have associated it with web2py DAL.
What I meant is that I want to make my application logic completely
independent from persistent data storage. The only method I know to
implement this is using the data mapper design pattern
(http://en.wikipedia.org/wik
You could see DAL as a scoped ORM i.e. for specific kind of objects, these
object are Table(s) containing Field(s) and the way to manipulate those
objects mimics as much as possible the relational model. By no mean DAL is
thin. As a matter of fact it allows extremely sophisticated thing like
acce
9 matches
Mail list logo