greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

Bulk Insert from Files #14

Open greenrobot opened 12 years ago

greenrobot commented 12 years ago

Pre-populating a database can be currently done by copying a database or executing a SQL script.

But copying a database is not always possible and the SQL script is slow.

Provide a BulkImporter Class that parses a CSV file, checks&matches the column names, and insert it into the database using a compiled statement.

umhan35 commented 11 years ago

@greenrobot Could you put this topic onto the website's documentation section with an example?

maikotrindade commented 9 years ago

@umhan35 I totally agree with you. Is it possible an example of pre-populated database?

MikeSoft commented 4 years ago

x2