mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +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
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user