Open greenrobot opened 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.
@greenrobot Could you put this topic onto the website's documentation section with an example?
@umhan35 I totally agree with you. Is it possible an example of pre-populated database?
x2
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.