I use dotConnect for SQLite 5.2.146 + Entity Framework 6.1.0 and Code-First approach.
How can I export database data to XML (or some other format) and import from it?
Export database to XML and import from it
Re: Export database to XML and import from it
Thx.
What will happend if I restore only data from a backup (made with DumpMode.Data flag) to a database which have more tables/more fields in some table?
I mean will it be ok to restore data from previous database version to database of current version (which appeared after migrating for example)?
What will happend if I restore only data from a backup (made with DumpMode.Data flag) to a database which have more tables/more fields in some table?
I mean will it be ok to restore data from previous database version to database of current version (which appeared after migrating for example)?
Re: Export database to XML and import from it
The compatibility of the dump depends on the schema changes implemented. We recommend you to open the script generated by SQLiteDump and check whether it is compatible with the new database schema.
Re: Export database to XML and import from it
My question is about database growth for now (adding new tables/adding rows to existing table).Shalex wrote:The compatibility of the dump depends on the schema changes implemented.
And I'm afraid I do not understand exactly what you mean by
Do you mean trying to restore SQLiteDump and if it does not fail - so this dump "is compatible with the new database schema".Shalex wrote:open the script generated by SQLiteDump and check whether it is compatible with the new database schema.
Or do you mean something else?
Re: Export database to XML and import from it
Yes, I do. SQLiteDump.Backup() generates SQL statements in a text format (see SqlDump.DumpText). This script will be executed on SQLiteDump.Restore().bairog wrote:Do you mean trying to restore SQLiteDump and if it does not fail - so this dump "is compatible with the new database schema".