[Laszlo-dev] For your review: Laszlo Database API spec version 1.1

Geert Bevin gbevin at uwyn.com
Fri Nov 4 17:01:26 PST 2005


>> Yes, but what why do you need to make the distinction, and why do  
>> you  need to push SQL into the server-side generated model data?  
>> Are the  declaration of abstract methods with a signature not  
>> sufficient?
>
> The goal of this is to make it easy for developers to access record- 
> based datasets, SQL in particular.  To that end, we try to  
> autogenerate as much of the SQL as possible for them.  One place  
> that becomes difficult to do declaratively is in WHERE clauses.   
> The other place is in ORDER BY clauses.

Can you give a use-case and an example for this? I still have trouble  
seeing why you need the WHERE and ORDER BY clauses in the model.

> I added native methods to satisfy the requirement of being able to  
> do other things.  Given the requirements, I'm still not sure how  
> SQL methods and order statements could (or should) be replaced by  
> procedural code.

>>> Yes - it is totally server side.  The spec is all server-side.   
>>> The  client-side portion still needs to be written up and built...
>> So ... what is the purpose in this spec?
>
> To make it easy for developers to interact with record-based  
> datasets on the server without requiring them to write much (or  
> any) code on the client or server to do so.
>
> The client-side work is well thought out, but since it isn't being  
> developed by the same people doing the server-side implementation  
> it isn't in this spec.  In a nutshell, it's an implementation of  
> dataset that knows how to speak the HTTP protocol and rollback  
> changes that didn't go through.  This should be part of the spec,  
> but I've had very limited time to work on this.
>
> Providing an open, HTTP-based protocol for working with record- 
> based data that doesn't require Laszlo or a specific back-end  
> technology is a nice side-effect.

So the implementation of the callbacks will actually be done by  
developers on the server-side, inside the XML declaration of the model?

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net




More information about the Laszlo-dev mailing list