Commit Graph
74 Commits
Author SHA1 Message Date
Gwendal Roué dd4d3e35f3 Concurrency Guide layout 2023-04-16 13:27:11 +02:00
Gwendal Roué a7b9a27c51 DocC home page layout 2023-04-16 13:09:31 +02:00
Gwendal Roué 18cdf4956e Fix typos 2023-04-10 16:52:03 +02:00
Gwendal Roué 859a1d6184 Enhance Recommended Practices for Designing Record Types 2023-04-10 14:11:39 +02:00
Gwendal Roué 52a3d6ba23 Move the "Recommended Practices for Designing Record Types" to DocC 2023-04-10 09:51:38 +02:00
Gwendal Roué 449c243a36 Rename persistentReaderConnections to dbConfiguration.persistentReadOnlyConnections 2023-03-18 11:08:56 +01:00
Gwendal Roué 063877d49c Configuration.persistentReaderConnections 2023-03-17 13:52:29 +01:00
Gwendal Roué 7c81c37e1f Move DatabaseRegionObservation documentation in an extension file 2023-03-15 16:51:46 +01:00
Gwendal Roué 3f876978a1 Move TransactionObserver documentation in an extension file 2023-03-15 16:51:46 +01:00
Gwendal Roué a0ed1bfd33 Move ValueObservation documentation in an extension file 2023-03-15 16:51:46 +01:00
Jon Lazar 37fd4c18b0 Update Migrations.md
Fix closure parameter syntax so that the example compiles.
2023-03-13 15:26:07 -04:00
Gwendal Roué d5a41bd11b Disable SQLITE_STATIC optimization when there are too many arguments 2023-03-13 19:33:52 +01:00
Gwendal Roué b4e851aa49 More statement arguments documentation 2023-03-12 10:59:38 +01:00
Gwendal Roué 3382280cc3 Statement.execute(arguments:) uses temporary bindings
Inspired by @helje5 in https://hachyderm.io/@helge@mastodon.social/109978514220902036

Thank you!!

Now, onto cursors!
2023-03-11 12:10:25 +01:00
Gwendal Roué 29b5b99b89 Fix typos 2023-03-11 08:00:23 +01:00
Gwendal Roué 6509f7ed40 Improve DatabaseValueConvertible documentation 2023-03-06 08:22:29 +01:00
Gwendal Roué 67bdc740bd DatabaseValueConvertible and collections: move the rationale out of the user-facing documentation. 2023-03-06 08:03:08 +01:00
Gwendal Roué 1e2b454c4c Enhance wording 2023-03-05 17:14:06 +01:00
Gwendal Roué 229bd98b9c Enhance Database Connection DocC overview 2023-03-05 13:51:14 +01:00
Gwendal Roué 692eac43a9 Fix typos 2023-03-05 07:44:12 +01:00
Gwendal Roué 4f398a3457 Prepared statements documentation is now hosted in the Statement DocC 2023-03-04 17:08:12 +01:00
Gwendal Roué 67dfdc1bbb Move DatabaseValueConvertible.swift DocC in an extension file 2023-03-04 15:19:55 +01:00
Gwendal Roué 441823d5f4 Enhance discoverability of the Database Sharing guide
https://github.com/groue/GRDB.swift/discussions/1343
2023-03-04 12:19:21 +01:00
Gwendal Roué 5ed44b94bc More improvements to RecordTimestamps.md 2023-02-23 07:59:08 +01:00
Gwendal Roué e683df3494 Tweak wording and explore more timestamp handling scenarios 2023-02-22 14:10:28 +01:00
Gwendal Roué 3fab2db88d RecordTimestamps.md organization 2023-02-22 08:07:27 +01:00
Gwendal Roué 5f013b6ee7 Layout for Xcode doc reader 2023-02-22 07:17:53 +01:00
Gwendal Roué 86bde428bf Make TimestampedRecord a subprotocol of MutablePersistableRecord 2023-02-22 06:13:32 +01:00
Gwendal Roué c5045dbe7a TimestampedRecord.updateChangesWithTimestamp 2023-02-21 22:48:37 +01:00
Gwendal Roué 9e2eb6c599 Enhance TimestampedRecord
In particular, `touch` performs an update on disk, just like the unix command.
2023-02-21 21:42:36 +01:00
Gwendal Roué 3bf73e9f66 TimestampedRecord demo 2023-02-21 08:51:03 +01:00
Gwendal Roué 9bd26a5a1b Improve Modification Timestamp documentation 2023-02-20 13:30:29 +01:00
Gwendal Roué 84f5a91f7b Improve Modification Timestamp documentation 2023-02-20 13:23:36 +01:00
Gwendal Roué 3b0cf1fb0b FTS5 DocC 2023-02-19 17:38:19 +01:00
Gwendal Roué 72216beacb Enhance wording 2023-02-18 12:06:11 +01:00
Gwendal Roué 3c71a6deea "Record Timestamps and Transaction Date" documentation chapter 2023-02-18 11:52:21 +01:00
Gwendal Roué f649d9e19e Transaction Date 2023-02-18 08:31:05 +01:00
Gwendal Roué c50cfd937e DocC: DatabaseQueue and DatabasePool 2022-12-18 11:45:28 +01:00
Gwendal Roué 3d7170f1bc DocC: Configuration 2022-12-17 10:11:36 +01:00
Gwendal Roué 2c5a86479a DocC: Transactions and Savepoints 2022-12-17 10:11:36 +01:00
Gwendal Roué df3bd46346 Rename PersistenceError to RecordError 2022-11-30 19:11:07 +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é e3cc15707a Move ValueObservation documentation to DocC 2022-11-27 18:27:26 +01:00
Gwendal Roué 5302b98a15 http -> https 2022-11-27 15:12:57 +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