Skip to content

Commit 192788d

Browse files
committed
Merge branch 'patch-1' of github.com:elihwyma/SQLite.swift into elihwyma-patch-1
2 parents 47ba31b + 3eb1fdc commit 192788d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Sources/SQLite/Foundation.swift

+16
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,19 @@ extension UUID: Value {
8484
}
8585

8686
}
87+
88+
extension URL: Value {
89+
90+
public static var declaredDatatype: String {
91+
String.declaredDatatype
92+
}
93+
94+
public static func fromDatatypeValue(_ stringValue: String) -> URL {
95+
URL(string: stringValue)!
96+
}
97+
98+
public var datatypeValue: String {
99+
absoluteString
100+
}
101+
102+
}

0 commit comments

Comments
 (0)