Foster autoIncrementedPrimaryKey in documentation

This commit is contained in:
Gwendal Roué committed 2018-04-21 20:11:34 +02:00
1 parent e80dab2ea9
commit 7aacaef2cd
3 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -888,7 +888,7 @@ extension Database {
/// An SQL column type.
///
/// try db.create(table: "players") { t in
/// t.column("id", .integer).primaryKey()
/// t.autoIncrementedPrimaryKey("id")
/// t.column("title", .text)
/// }
///
+3 -3
View File
@@ -6,7 +6,7 @@ extension Database {
/// Creates a database table.
///
/// try db.create(table: "pointOfInterests") { t in
/// t.column("id", .integer).primaryKey()
/// t.autoIncrementedPrimaryKey("id")
/// t.column("title", .text)
/// t.column("favorite", .boolean).notNull().default(false)
/// t.column("longitude", .double).notNull()
@@ -35,7 +35,7 @@ extension Database {
/// Creates a database table.
///
/// try db.create(table: "pointOfInterests") { t in
/// t.column("id", .integer).primaryKey()
/// t.autoIncrementedPrimaryKey("id")
/// t.column("title", .text)
/// t.column("favorite", .boolean).notNull().default(false)
/// t.column("longitude", .double).notNull()
@@ -67,7 +67,7 @@ extension Database {
/// Creates a database table.
///
/// try db.create(table: "pointOfInterests") { t in
/// t.column("id", .integer).primaryKey()
/// t.autoIncrementedPrimaryKey("id")
/// t.column("title", .text)
/// t.column("favorite", .boolean).notNull().default(false)
/// t.column("longitude", .double).notNull()
+1 -1
View File
@@ -104,7 +104,7 @@ extension TableRecord {
///
/// try dbQueue.write { db in
/// try db.create(table: "players") { t in
/// t.column("id", .integer).primaryKey()
/// t.autoIncrementedPrimaryKey("id")
/// t.column("name", .text)
/// t.column("score", .integer)
/// }