Skip to content

Releases: vapor/fluent

Fluent 2.0 Alpha 12

09 Mar 12:34
Compare
Choose a tag to compare
Fluent 2.0 Alpha 12 Pre-release
Pre-release

New:

  • Entity's must now conform to RowConvertible.
  • Identifier type for ids.

Fluent 2.0 Alpha 11

06 Mar 14:30
Compare
Choose a tag to compare
Fluent 2.0 Alpha 11 Pre-release
Pre-release

New:

  • Updating better node context, use RowRepresentable to make database specific models

#200

Fluent 2.0 Alpha 10

28 Feb 11:42
Compare
Choose a tag to compare
Fluent 2.0 Alpha 10 Pre-release
Pre-release

New:

  • Updated underlying node w/ makeNode(in for parity
  • Support for camel case and snake case defaults

#199 #198

Fluent 2.0 Alpha 9

27 Feb 11:00
Compare
Choose a tag to compare
Fluent 2.0 Alpha 9 Pre-release
Pre-release

New:

  • MemoryDriver and SQLiteDriver are now separate, final classes.

#197

Fluent 2.0 Alpha 8

24 Feb 12:04
Compare
Choose a tag to compare
Fluent 2.0 Alpha 8 Pre-release
Pre-release

New:

  • Updating extract to get methods and prepping spm/pods support

#195

Fluent 1.4.1

24 Feb 15:45
Compare
Choose a tag to compare

Fixed:

  • Child Relations

#191

Fluent 2.0 Alpha 7

23 Feb 17:15
Compare
Choose a tag to compare
Fluent 2.0 Alpha 7 Pre-release
Pre-release

New:

  • In Memory SQLite database for more confidence and ease in testing 🙌

#193

Fluent 2 Alpha 6

21 Feb 11:00
Compare
Choose a tag to compare
Fluent 2 Alpha 6 Pre-release
Pre-release

New:

  • Improved Join key naming.
  • Database log property and Log type for logging queries.
  • Siblings now has a third generic parameter for the through type
  • Siblings now has add, remove, and isAttached when the through type conforms to PivotProtocol

Fluent 2.0 Alpha 5

17 Feb 16:40
Compare
Choose a tag to compare
Fluent 2.0 Alpha 5 Pre-release
Pre-release

New:

  • Operators
return try Child.query().filter(Parent.foreignIdKey == parentId)

Fixed:

  • Compiler crash.

Fluent 2.0 Alpha 4

17 Feb 14:34
Compare
Choose a tag to compare
Fluent 2.0 Alpha 4 Pre-release
Pre-release

New:

  • Storable base to allow easier protocol extensions
  • IdKey conveniences

Changed:

  • Fluent now enforces reference types, use final class in place of struct 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? and var 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 put id = ... 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")
}

#181