Releases: vapor/fluent
Releases · vapor/fluent
Fluent 2.0 Alpha 12
New:
- Entity's must now conform to
RowConvertible
. Identifier
type for ids.
Fluent 2.0 Alpha 11
Fluent 2.0 Alpha 10
Fluent 2.0 Alpha 9
Fluent 2.0 Alpha 8
Fluent 1.4.1
Fluent 2.0 Alpha 7
Fluent 2 Alpha 6
New:
- Improved
Join
key naming. - Database
log
property andLog
type for logging queries. Siblings
now has a third generic parameter for the through typeSiblings
now hasadd
,remove
, andisAttached
when the through type conforms toPivotProtocol
Fluent 2.0 Alpha 5
New:
- Operators
return try Child.query().filter(Parent.foreignIdKey == parentId)
Fixed:
- Compiler crash.
Fluent 2.0 Alpha 4
New:
- Storable base to allow easier protocol extensions
- IdKey conveniences
Changed:
- Fluent now enforces reference types, use
final class
in place ofstruct
on existing conformers. - Swift 3.1
Warning:
- id and exists are now implemented natively by Fluent, this means a few changes are required. All instances of
var id: Node?
andvar exists
on models MUST be deleted for Fluent to function properly. - if you are setting
id
manually in initializers, it MUST happen AFTER the initialization to function properly. In practice, this means usually putid = ...
at the BOTTOM of your initializer if you need to do it.
let name: String
init(node: Node, in context: Context) throws {
id = try node.extract("id") // will fail
name = try node.extract("name")
}
=>
let name: String
init(node: Node, in context: Context) throws {
name = try node.extract("name")
// called after initialization proper
id = try node.extract("id")
}