-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Update Datafile
Mauricio David edited this page Aug 27, 2017
·
6 revisions
There is no datafile changes from LiteDB v3 to v4. You can use same database file!
To upgrade your datafile from LiteDB v2 you can use "upgrade=true" in connection string. Like this:
var db = new LiteDatabase("filename=old.db;upgrade=true");
LiteDB will update (if is necessary) to new datafile format. You can use shell too:
> upgrade my-old-file.db
if your old datafile is password protected, use:
> upgrade filename=my-old-file.db;password=mypass
Only v2 datafile is supported (file format 6).
Data Modeling
- Data Structure
- BsonDocument
- Object Mapping
- Relationships with Document References
- Collections
- FileStorage
Index
Query
Database
Version 4 changes
Shell