im trying that but it doesnt works maybe im doing something wrong.

Ive also tried this but in both cases web2py doesnt create any files.

db.export_to_csv_file(open('db.csv','wb'))

db.import_from_csv_file(open('db.csv','rb'))
db.commit()


On 22 dic, 16:16, Thadeus Burgess <thade...@thadeusb.com> wrote:
> db.export_to_csv_file(open('/path/to/my/file.txt', 'w'))
>
> and then when you switch your DAL over...
>
> db.import_from_csv_file(open('/path/to/myfile.txt', 'r'))
>
> -Thadeus
>
>
>
> On Tue, Dec 22, 2009 at 3:07 PM, Adolfo <avizca...@gmail.com> wrote:
> > Hello
>
> > I've been working with sqlite for develpment but now that i have
> > finish with my app id like to use postgress. So i'd like to know if
> > someone know a simple way of migrating the data in my Sqlite database
> > to the one in Postgress.
>
> > Thanks
>
> > Adolfo
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "web2py-users" group.
> > To post to this group, send email to web...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > web2py+unsubscr...@googlegroups.com<web2py%2bunsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/web2py?hl=en.- Ocultar texto de la cita -
>
> - Mostrar texto de la cita -

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to