You can use this script

http://code.google.com/p/web2py/source/browse/scripts/extract_mysql_models.py

to generate a model from the mysql database.



On Sep 14, 7:42 am, Markandeya <[email protected]> wrote:
> Dear Friends of web2py,
> Sorry for this repeated question, but i can't seem to understand
> properly. I have been looking it up for an hour or two.
> I have CSV file for a database table created by sqlite. It is in the
> format that is first line delimited column names then a separate line
> with delimited field values for each table row.
>
> Can this be imported in any way so that one doesn't have to hand write
> db.define_table statements defining each field??
>
> If i have a Mysql table can this be imported(or even the schema) so
> that there is no need to hand write the db.define_table statements??
>
> Many thanks. This will save me lots of time searching whatever the
> proper answer is and i can get to the programming.

Reply via email to