fluent-kit
fluent-kit copied to clipboard
Swift ORM (queries, models, and relations) for NoSQL and SQL databases
The `anyValueType` eraser in `Fields+Codable` is coalescing the double-optional of OptionalParent.Value to a single optional, causing it to improperly decode when passed around via Codable.
@Enum array
I have this enum ```swift enum Permission: String, PostgreSQLEnum, PostgreSQLMigration { ... case asset_create = "asset:create" case asset_delete = "asset:delete" case asset_read = "asset:read" case asset_update = "asset:update" ... }...
Hi! This adds SQL-backed-only support for using a read action with "FOR UPDATE" or "FOR SHARE" which will allow the user to query+mutate the returned model(s)+save back on the database...
Steps to reproduce 1. Checkout branch main on 2b3ac0556740ea8d68f8616917daf64338d54c1b 2. Run all tests Environment * M1 chipset * macOS 12.3.1 * swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)...
### Describe the bug If the `Parent` property on a child is using `CompositeID`, it cannot be queried properly. ### To Reproduce ```swift final class ParentModel: Model { static var...
### Describe the bug A `Model` using both `CompositeID` and `Children` will crash on load. ### To Reproduce ```swift final class ParentModel: Model { static var schema = "parents" final...
I'd like to be able to supply a set of properties to sort on when defining a @Children relationship. Perhaps something like... ```swift @Children(for: \.$company, sort: [\.firstName, \.lastName, \.employeeId]) var...
### Describe the bug The current implementation of `constraintIdentifier` for foreign key prefixed all local and foreign fields with the local table name, but the output is not unique in...
### Describe the bug Anytime a `join` or `with` are involved in a delete query, I receive the follow error: ``` [ WARNING ] server: missing FROM-clause entry for table...
When the database type is a `date` (where there's no time component) and I try to `.filter()` against it, it doesn't currently work properly. The generated SQL needs to include...