LiteDB v4.0.0 Release Notes
Release Date: 2017-10-18 // over 6 years ago-
π LiteDB v4 released
π New Features
- β Add support to NETStandard 2.0 (with support to
Shared
mode) - π New document
Expression
parser/executor - see Expression Wiki π Support index creation with expressions
col.EnsureIndex(x => x.Name, "LOWER($.Name)");col.EnsureIndex("GrandTotal", "SUM($.Items[*].Qtd * $.Items[*].Price)");
π Query with
Include
itΒ΄s supported in Engine level with ANY nested includescol.Include(x => x.Users) .Include(x => x.Users[0].Address) .Include(x => x.Users[0].Address.City) .Find(...)
π Support complex Linq queries using
LinqQuery
compiler (works as linq to object)col.Find(x => x.Name == "John" && x.Items.Length.ToString().EndsWith == "0")
π Better execution plan (with debug info) in multi query statements
No more external journal file - use same datafile to store temporary data
π Fixed concurrency problems (keeps thread/process safe)
Convert
Query.And
toQuery.Between
when possibleβ Add support to
Query.Between
open/close intervalβ¬οΈ Same datafile from LiteDB
v3
(no upgrade needed)
Shell
- π New UPDATE/SELECT statements in shell
- π Shell commands parser/executor are back into LiteDB.dll
- π Better shell error messages in parser with position in error
- π¨ Print query execution plan in debug
π(Seek([Age] > 10) and Filter([Name] startsWith "John"))
(preparing to new visual LiteDB database management tool)
Break changes
- β Remove transactions
- β Remove auto-id register function for custom type
- β Remove index definitions on mapper (fluent/attribute)
- β Remove auto create index on query execution. If the index is not found do full scan search (use
EnsureIndex
on initialize database)
- β Add support to NETStandard 2.0 (with support to