>
> > It takes you to an entire chapter of the book on the Database
> Abstraction
> > Layer -- with *lots* of examples.
> >
> Yes, I followed it to the book but couldn't see any examples there.
> Let me try again.... No, sorry, I can't see any. I mean I don't
> really count things like the following as examples:-
>
> You can also use explicit quoting of SQL entities at DAL level. It
> works transparently so you can use the same names in python and in the
> DB schema.
> ignore_field_case = Trueentity_quoting = True
>
> Here is an example:
>
> db = DAL('postgres://...', ...,ignore_field_case=False,
> entity_quoting=True)
>
> db.define_table('table1', Field('column'), Field('COLUMN'))
>
> print db(db.table1.COLUMN != db.table1.column).select()
>
> I mean, that's just a code snippet to illustrate a point. What I was
> hoping for was complete chunks of code that I could load/install and
> see the result as a web page.
>
We can't help what you were hoping for, but the link says, "You can find
more examples of the web2py Database Abstraction Layer here." Indeed, there
are plenty of examples in that chapter, including complete working chunks
of code (specifically related to the DAL). Nothing was promised about
complete model-view-controller examples (which have already been provided
in the examples app).
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.