If you use sqlite

    db=SQLDB('sqlite://storage.sqlite')

there is nothing to do, web2py will create it.

If you use GAE

   db=GQLDB()

also there is nothing to do.

If you use any of the other database engines, the actual database
cannot be created in SQL but using the specific functions (createdb
for postgreSQL). I believe this step does not belong in web2py. There
are many details such as permissions and they are better handled at
the unix shell level.

In principle it would be possible to create a web2py app that provides
an interface for the most common database engines.

Massimo

On May 15, 11:35 pm, JohnMc <[email protected]> wrote:
> I am curious. From the documentation I read on CRUD it appears to
> manage everything about a database but creating the database to begin
> with.
>
> A) Is that possible with executesql() ?
> B) Was there a reason for not providing a createdb() capability?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to