Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vapor/fluent-kit
Swift ORM (queries, models, and relations) for NoSQL and SQL databases
https://github.com/vapor/fluent-kit
fluent server-side-swift swift vapor
Last synced: 3 months ago
JSON representation
Swift ORM (queries, models, and relations) for NoSQL and SQL databases
- Host: GitHub
- URL: https://github.com/vapor/fluent-kit
- Owner: vapor
- License: mit
- Created: 2019-02-11T23:32:26.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2024-04-30T15:15:50.000Z (7 months ago)
- Last Synced: 2024-05-01T11:26:39.463Z (7 months ago)
- Topics: fluent, server-side-swift, swift, vapor
- Language: Swift
- Homepage:
- Size: 1.1 MB
- Stars: 197
- Watchers: 24
- Forks: 115
- Open Issues: 82
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
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/).