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 517aab8

Browse files
Merge branch 'master' into gm
2 parents 47985c0 + c3bc56f commit 517aab8

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 によって変換されたページ (->オリジナル) /