Swiftpack.co - vapor/fluent-kit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by vapor.
vapor/fluent-kit 1.47.3
Swift ORM (queries, models, and relations) for NoSQL and SQL databases
⭐️ 197
🕓 1 week ago
iOS macOS watchOS tvOS linux macOS iOS
.package(url: "https://github.com/vapor/fluent-kit.git", from: "1.47.3")

FluentKit

Documentation Team Chat MIT License Continuous Integration Swift 5.8+


An Object-Relational Mapper (ORM) for Swift. It allows you to write type safe, database agnostic models and queries. It takes advantage of Swift's type system to provide a powerful, yet easy to use API.

An example query looks like:

let planets = try await Planet.query(on: database)
    .filter(\.$type == .gasGiant)
    .sort(\.$name)
    .with(\.$star)
    .all()

For more information, see the Fluent documentation.

GitHub

link
Stars: 197
Last commit: 6 hours ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Release Notes

1.48.0 - Primary Sendable support for Fluent
7 hours ago

What's Changed

Primary Sendable support for Fluent by @gwynne in #601

Adds as much Sendable correctness to FluentKit as it is possible to add.

[!IMPORTANT] It was not possible to make Model correctly Sendable due to limitations of how property wrappers work, even though the wrappers themselves are Sendable. Users can get around this by adding @unchecked Sendable to each individual Model class, but this of course does not confer actual safety; it just disables the compiler’s warnings.

Also adds some missing APIs to FluentSQL to allow encoding Fluent models to SQLKit queries. The existing APIs for decoding Fluent models from SQLKit queries have been renamed, and the old names deprecated.

Other changes:

  • The performance improvements for Mirror are now used in Swift 5.10
  • QueryHistory is no longer thread-unsafe for reading
  • The minimum supported Swift version is now 5.8
  • SomeCodingKey is now an alias for SQLKit’s version
This patch was released by @gwynne

Full Changelog: https://github.com/vapor/fluent-kit/compare/1.47.3...1.48.0

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics