-
-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Primary Sendable support for Fluent (#601)
* Bump min Swift to 5.8, add feature flags * Mark as many things Sendable as we can * Package structure and CI updates * MirrorBypass is valid in 5.10 (looks like it'll be valid in 6.0 too, but holding off on that just in case) * SomeCodingKey is now provided by SQLKit * Add the missing utilities for encoding Fluent models to SQLKit queries * Minor code and docs cleanup * Update the fake database used for testing to be more flexible and fix tests accordingly * Add tests for new FluentSQL APIs * Remove the last few uses of print() (all in tests) * Fix locking of QueryHistory
- Loading branch information
Showing
141 changed files
with
1,698 additions
and
1,051 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
.api-breakage/allowlist-branch-make-pivot-rhs-available-during-array-attach.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
codecov: | ||
notify: | ||
after_n_builds: 1 | ||
wait_for_ci: false | ||
require_ci_to_pass: false | ||
comment: | ||
behavior: default | ||
layout: diff, files | ||
require_changes: true | ||
coverage: | ||
status: | ||
patch: | ||
default: | ||
branches: | ||
- ^main$ | ||
informational: true | ||
only_pulls: false | ||
paths: | ||
- ^Sources.* | ||
target: auto | ||
project: | ||
default: | ||
branches: | ||
- ^main$ | ||
informational: true | ||
only_pulls: false | ||
paths: | ||
- ^Sources.* | ||
target: auto | ||
github_checks: | ||
annotations: true | ||
ignore: | ||
- ^Sources/XCTFluent/.* | ||
- ^Sources/FluentBenchmarks/.* | ||
- ^Tests/.* | ||
- ^.build/.* | ||
slack_app: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
<p align="center"> | ||
<img | ||
src="https://user-images.githubusercontent.com/1342803/58727365-19b1a280-83b2-11e9-8240-601f3e5fa68f.png" | ||
height="64" | ||
alt="FluentKit" | ||
> | ||
<br> | ||
<br> | ||
<a href="https://docs.vapor.codes/4.0/"> | ||
<img src="http://img.shields.io/badge/read_the-docs-2196f3.svg" alt="Documentation"> | ||
</a> | ||
<a href="https://discord.gg/vapor"> | ||
<img src="https://img.shields.io/discord/431917998102675485.svg" alt="Team Chat"> | ||
</a> | ||
<a href="LICENSE"> | ||
<img src="http://img.shields.io/badge/license-MIT-brightgreen.svg" alt="MIT License"> | ||
</a> | ||
<a href="https://github.com/vapor/fluent-kit/actions/workflows/test.yml"> | ||
<img src="https://github.com/vapor/fluent-kit/actions/workflows/test.yml/badge.svg?event=push" alt="Continuous Integration"> | ||
</a> | ||
<a href="https://codecov.io/gh/vapor/fluent-kit"> | ||
<img src="https://codecov.io/gh/vapor/fluent-kit/branch/main/graph/badge.svg?token=6slVbnp1mV" alt="Test Coverage"> | ||
</a> | ||
<a href="https://swift.org"> | ||
<img src="http://img.shields.io/badge/swift-5.6-brightgreen.svg" alt="Swift 5.6"> | ||
</a> | ||
<picture> | ||
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/vapor/fluent-kit/assets/1130717/1da9ba22-253a-43ba-ac03-5cecf0075c30"> | ||
<source media="(prefers-color-scheme: light)" srcset="https://github.com/vapor/fluent-kit/assets/1130717/89800da9-2651-4fff-900a-be8f691bedb9"> | ||
<img src="https://github.com/vapor/fluent-kit/assets/1130717/89800da9-2651-4fff-900a-be8f691bedb9" height="96" alt="FluentKit"> | ||
</picture> | ||
<br> | ||
<br> | ||
<a href="https://docs.vapor.codes/4.0/"><img src="https://design.vapor.codes/images/readthedocs.svg" alt="Documentation"></a> | ||
<a href="https://discord.gg/vapor"><img src="https://design.vapor.codes/images/discordchat.svg" alt="Team Chat"></a> | ||
<a href="LICENSE"><img src="https://design.vapor.codes/images/mitlicense.svg" alt="MIT License"></a> | ||
<a href="https://github.com/vapor/fluent-kit/actions/workflows/test.yml"><img src="https://img.shields.io/github/actions/workflow/status/vapor/fluent-kit/test.yml?event=push&style=plastic&logo=github&label=tests&logoColor=%23ccc" alt="Continuous Integration"></a> | ||
<a href="https://codecov.io/github/vapor/fluent-kit"><img src="https://img.shields.io/codecov/c/github/vapor/fluent-kit?style=plastic&logo=codecov&label=codecov"></a> | ||
<a href="https://swift.org"><img src="https://design.vapor.codes/images/swift58up.svg" alt="Swift 5.8+"></a> | ||
</p> | ||
|
||
<br> | ||
|
||
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: | ||
|
||
```swift | ||
let planets = try await Planet.query(on: database) | ||
.filter(\.$type == .gasGiant) | ||
.sort(\.$name) | ||
.with(\.$star) | ||
.all() | ||
``` | ||
|
||
For more information, see the [Fluent documentation](https://docs.vapor.codes/fluent/overview/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.