Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c3bc56f

Browse files
Merge pull request #45 from gperdomor/patch-1
Added PostgreSQLStringModel
2 parents dfe4c63 + 8cee09b commit c3bc56f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Foundation
2+
3+
public protocol PostgreSQLStringModel: Model where Self.Database == PostgreSQLDatabase, Self.ID == String {
4+
/// This model's unique identifier.
5+
var id: String? { get set }
6+
}
7+
8+
extension PostgreSQLStringModel {
9+
/// See `Model.idKey`
10+
public static var idKey: IDKey { return \.id }
11+
}
12+
13+
public protocol PostgreSQLStringPivot: Pivot, PostgreSQLStringModel { }

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /