mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
Foster autoIncrementedPrimaryKey in documentation
This commit is contained in:
1 parent
e80dab2ea9
commit
7aacaef2cd
3 files changed
+5
-5
No files matched your search
@@ -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)
|
||||
/// }
|
||||
///
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
/// }
|
||||
|
||||
Reference in new issue
Block a user