Gwendal Roué
13b6c9d36b
Split database schema documentation into several files, and restore the overview of database schema features
...
Fixes #1623
2024-10-13 10:54:13 +02:00
Gwendal Roué
173f363bdc
TableRecord.databaseSelection should be declared as a computed property
2024-09-21 17:21:59 +02:00
Ben Barnett
27a4215424
Add schemaName parameter to foreign key checking functions
2023-12-08 18:22:49 +00:00
Ben Barnett
65167ec7da
Add schemaName parameter to table/view/triggerExists()
2023-12-08 18:22:49 +00:00
Ben Barnett
73489fc0e7
Add schemaName parameter to indexes(on:)
2023-12-08 18:22:49 +00:00
Ben Barnett
1aca8efa65
Add schemaName parameter to foreignKeys(on:)
2023-12-08 18:22:49 +00:00
Ben Barnett
f00a974211
Add schemaName parameter to columns(in:)
2023-12-06 20:49:48 +00:00
Ben Barnett
ac475cc158
Add schemaName parameter to primaryKey(_:)
2023-12-06 20:32:17 +00:00
Gwendal Roué
c4c13b6f53
Doc updates for GRDBSnapshotTesting
2023-10-14 11:22:48 +02:00
Gwendal Roué
0eb973b6db
Record types with an auto-incremented id should avoid the Identifiable protocol.
2023-10-04 22:02:18 +02:00
Gwendal Roué
1f0b52a012
JSON documentation
2023-10-04 19:57:45 +02:00
Gwendal Roué
908f8b242a
Prepare documentation for JSON
2023-10-04 19:55:12 +02:00
Gwendal Roué
718102f743
Create indexes on expressions
2023-10-02 07:49:59 +02:00
Gwendal Roué
466ecd5ba5
Documentation
2023-07-09 17:22:38 +02:00
Gwendal Roué
3375282252
Update outdated documentation about views
2023-07-09 17:13:22 +02:00
Gwendal Roué
bebb751b3c
Create and drop view
2023-07-09 17:13:22 +02:00
Gwendal Roué
c02139c045
Default name for newly created indexes
2023-05-25 09:03:09 +02:00
Gwendal Roué
ebb2f7346d
Cleanup FTS5 documentation
2023-04-29 16:50:15 +02:00
Gwendal Roué
229bd98b9c
Enhance Database Connection DocC overview
2023-03-05 13:51:14 +01:00
Gwendal Roué
08ec50f44b
Enhance documentation for explicit rowid support
2022-11-28 21:09:48 +01:00
Gwendal Roué
156ed53588
Remove obsolete documentation comment
2022-11-28 21:05:30 +01:00
Gwendal Roué
35e60f2b97
Precision
2022-11-27 14:48:43 +01:00
Gwendal Roué
7bd1992e61
Fix ergonomics issue with the definition of compound primary key
...
If the user would forget the PrimaryKeyDefinition, the primary was not defined:
try db.create(table: "membership") { t in
// WRONG: pk is unused
t.primaryKey { pk in
t.column("playerId", .integer)
t.column("teamId", .text)
}
}
The fix is to remove the PrimaryKeyDefinition:
try db.create(table: "membership") { t in
t.primaryKey {
t.column("playerId", .integer)
t.column("teamId", .text)
}
}
2022-11-27 14:09:25 +01:00
Gwendal Roué
f5ebf0de4d
Use primary key definitions with NOT NULL constraint by default
2022-11-27 12:35:47 +01:00
Gwendal Roué
3074b61cb7
Move schema documentation to DocC
2022-11-27 11:07:13 +01:00
Gwendal Roué
d91e6c2db6
Add schema recommendations to DatabaseSchema.md
2022-11-26 17:09:58 +01:00
Gwendal Roué
131f414a75
Enhance DatabaseSchema.md
2022-11-18 13:49:28 +01:00
Gwendal Roué
a71eb3d662
Introduce WALSnapshotToken
2022-11-13 18:28:54 +01:00
Gwendal Roué
71880a9b8e
Enhance Documentation
2022-11-09 13:20:08 +01:00
Gwendal Roué
14fb1945be
Fix documentation
2022-11-08 22:57:48 +01:00
Gwendal Roué
33cdf6f270
Extract <doc:DatabaseSchema>
2022-11-08 19:28:13 +01:00