Skip to content

Commit

Permalink
Foster autoIncrementedPrimaryKey in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
groue committed Apr 21, 2018
1 parent e80dab2 commit 7aacaef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion GRDB/Core/Database.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/// }
///
Expand Down
6 changes: 3 additions & 3 deletions GRDB/QueryInterface/TableDefinition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion GRDB/Record/TableRecord.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
/// }
Expand Down

0 comments on commit 7aacaef

Please sign in to comment.