mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-18 23:19:45 +02:00
fix compiler errors
This commit is contained in:
@@ -91,7 +91,7 @@ public extension DynamicSchema {
|
|||||||
case .integer64AttributeType:
|
case .integer64AttributeType:
|
||||||
valueType = Int64.self
|
valueType = Int64.self
|
||||||
if let defaultValue = (attribute.defaultValue as! Int64.ImportableNativeType?).flatMap(Int64.cs_fromImportableNativeType),
|
if let defaultValue = (attribute.defaultValue as! Int64.ImportableNativeType?).flatMap(Int64.cs_fromImportableNativeType),
|
||||||
defaultValue != Int54.cs_emptyValue() {
|
defaultValue != Int64.cs_emptyValue() {
|
||||||
|
|
||||||
defaultString = ", default: \(defaultValue)"
|
defaultString = ", default: \(defaultValue)"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,19 +31,16 @@ import Foundation
|
|||||||
|
|
||||||
public extension DynamicObject where Self: CoreStoreObject {
|
public extension DynamicObject where Self: CoreStoreObject {
|
||||||
|
|
||||||
@inline(__always)
|
|
||||||
public static func keyPath<O: CoreStoreObject, V: ImportableAttributeType>(_ attribute: (Self) -> ValueContainer<O>.Required<V>) -> String {
|
public static func keyPath<O: CoreStoreObject, V: ImportableAttributeType>(_ attribute: (Self) -> ValueContainer<O>.Required<V>) -> String {
|
||||||
|
|
||||||
return attribute(self.meta).keyPath
|
return attribute(self.meta).keyPath
|
||||||
}
|
}
|
||||||
|
|
||||||
@inline(__always)
|
|
||||||
public static func keyPath<O: CoreStoreObject, V: ImportableAttributeType>(_ attribute: (Self) -> ValueContainer<O>.Optional<V>) -> String {
|
public static func keyPath<O: CoreStoreObject, V: ImportableAttributeType>(_ attribute: (Self) -> ValueContainer<O>.Optional<V>) -> String {
|
||||||
|
|
||||||
return attribute(self.meta).keyPath
|
return attribute(self.meta).keyPath
|
||||||
}
|
}
|
||||||
|
|
||||||
@inline(__always)
|
|
||||||
public static func `where`(_ condition: (Self) -> Where) -> Where {
|
public static func `where`(_ condition: (Self) -> Where) -> Where {
|
||||||
|
|
||||||
return condition(self.meta)
|
return condition(self.meta)
|
||||||
|
|||||||
Reference in New Issue
Block a user