python - Generating Model code with pwiz Error -
i trying generate model values using pwiz. database in question sqlite database, contains django tables in addition regular tables generated using python script. when try following in linux terminal
python -m pwiz -e sqlite -t mapping_table db.sqlite3
i following error:
/python2.7/site-packages/peewee.py", line 3001, in get_indexes _, name, is_unique in cursor.fetchall(): valueerror: many values unpack
the table trying retrieve 1 generated using python script. has couple of columns , rows in it. not sure how proceed here exactly.
python -m pwiz -e sqlite db.sqlite3 > db_map.py
pwiz reads database , creates file database mapping.
db.sqlite3 name of database (put database filename)
db_map.py filename of output file (name keep .py extension)
Comments
Post a Comment