greenDAO icon indicating copy to clipboard operation
greenDAO copied to clipboard

Bulk Insert from Files

Open greenrobot opened this issue 12 years ago • 3 comments

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.

greenrobot avatar Jan 15 '12 01:01 greenrobot

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

umhan35 avatar Mar 28 '13 23:03 umhan35

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

maikotrindade avatar Jan 07 '15 15:01 maikotrindade

x2

MikeSoft avatar Mar 15 '20 04:03 MikeSoft