Releases: WebFreak001/MongoSchemaD
Releases · WebFreak001/MongoSchemaD
v5.0.1
v5.0.0
v4.2.1
- workaround
remove
not being@safe
v4.2.0
- fixed vibe.d aggregate not being
@safe
- add int overload for mongoExpire
- support new vibe.d index models
v4.1.0
- added const bsonID overload
- made most SchemaVariant methods const/inout
v4.0.0
- support for SysTime (de)serialization
- Query no longer includes fields with custom encode/decode callbacks
- (de)serialization will no longer compile for empty types. Either provide encode/decode callbacks, implement toBson, fromBson or mark as ignored
v3.1.1
v3.1.0
- query functions are now
@safe
if their memberToBson counterparts are too - SchemaPipeline (aggregation) now supports query syntax for
match
and allows any value to be serialized as other arguments - numbers (int, float, short, byte, etc) are now all supported and convert between each other. As the MongoDB CLI by default inserts doubles for any number, integral values cast down from floats
- implement static array deserialization
v3.0.0
- Split code into multiple packages, but
mongoschema
package still includes them all - Added
SchemaVariant!(Types...)
struct which is a variant that serializes depending on the stored value and deserializes back to it. - ints implicitly convert to longs now when reading
- added tryFind overloads which return a default value instead of nullables
- added a new query framework. You can now do typesafe searches using
MySchema.findOne(query!MySchema.key1(value1).key2(value2).someInt.gte(40))
v2.6.0
Add safe collection getter
Added merge method to save only fields that are specified in the schema. (For multiple schemas operating on the same collection)
Added insertMany method to handle inserting many elements at once (also supporting ranges).