Commit Graph
10263 Commits
Author SHA1 Message Date
Gwendal Roué 82ed41b700 Remove junk from Makefile 2022-12-10 15:17:44 +01:00
Gwendal Roué 639eadbad2 CI: more Xcode 14.1 2022-12-10 14:20:42 +01:00
Gwendal Roué 4ff3221feb CI: explicit iOS and tvOS tests 2022-12-10 14:04:00 +01:00
Gwendal Roué a61a769da9 CI: explicit macOS tests 2022-12-10 13:26:53 +01:00
Gwendal Roué 04bdafd448 Makefile change triggers Github workflow 2022-12-10 13:19:10 +01:00
Gwendal Roué 5fa5e62d0e CHANGELOG 2022-12-10 13:06:39 +01:00
Gwendal Roué 1d5f05351a Merge pull request #1304 from groue/dev/generated-columns
Expose generated columns with availability checks
2022-12-10 13:04:09 +01:00
Gwendal Roué 05da03ab1a Expose generated columns with availability checks 2022-12-10 11:32:23 +01:00
Gwendal Roué 7b63ddf542 Merge branch 'development' v6.5.0 2022-12-05 11:19:16 +01:00
Gwendal Roué 13860219be v6.5.0 2022-12-05 11:18:59 +01:00
Gwendal Roué 4cbf442cc8 Merge pull request #1299 from groue/dev/find
Record.find() convenience methods
2022-11-30 22:48:58 +01:00
Gwendal Roué 2bde3e11bc Tests for find(_🔑) and find(_🆔) 2022-11-30 21:39:44 +01:00
Gwendal Roué 5ab7bfb229 recordNotFound returns an error instead of Never
https://forums.swift.org/t/methods-that-throw-and-return-never/61715
2022-11-30 21:33:15 +01:00
Gwendal Roué 520766a74e CHANGELOG 2022-11-30 20:07:42 +01:00
Gwendal Roué 6c16a9a4e5 Document the find method 2022-11-30 20:02:24 +01:00
Gwendal Roué 726022d5a5 Support for legacy urls 2022-11-30 19:52:55 +01:00
Gwendal Roué 4a4ff9950c FetchableRecord.find() methods 2022-11-30 19:36:25 +01:00
Gwendal Roué afc578db7f TableRecord.recordNotFound() methods 2022-11-30 19:36:08 +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é f9cfadce78 CHANGELOG 2022-11-28 20:57:48 +01:00
Gwendal Roué 2269a82479 CHANGELOG 2022-11-28 18:43:26 +01:00
Gwendal Roué 8330469ac3 Merge branch 'development' v6.4.0 2022-11-28 17:14:48 +01:00
Gwendal Roué 72f56a1b03 v6.4.0 2022-11-28 13:29:23 +01:00
Gwendal Roué cbd05c9037 Fix documentation link 2022-11-28 13:28:35 +01:00
Gwendal Roué a27c34e635 CHANGELOG 2022-11-28 13:19:56 +01:00
Gwendal Roué 35019f7a36 Merge pull request #1297 from groue/experimental/expose-CSQLite
SPM: expose the CSQLite product
2022-11-28 11:40:28 +01:00
Gwendal Roué 69e4706549 Expose CSQLite as a SPM product 2022-11-28 10:37:39 +01:00
Gwendal Roué 65bd4d90c2 Enhance DatabaseRegionObservation documentation 2022-11-28 08:36:30 +01:00
Gwendal Roué 7343912ac3 Fix broken links 2022-11-28 08:31:45 +01:00
Gwendal Roué 409bd3bb26 Move Database Observation documentation to DocC 2022-11-28 08:27:12 +01:00
Gwendal Roué fed4833764 Move DatabaseRegionObservation documentation to DocC 2022-11-27 18:45:48 +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é ef019bb9da CHANGELOG 2022-11-27 15:05:45 +01:00
Gwendal Roué 35e60f2b97 Precision 2022-11-27 14:48:43 +01:00
Gwendal Roué 2e2b79a3a9 The technique for exposing rowids to record types has moved to DocC 2022-11-27 14:29:14 +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é f8728bbed8 Enhance documentation 2022-11-27 13:01:42 +01:00
Gwendal Roué f774aa7c07 Fix tests for named in-memory database 2022-11-27 12:46:59 +01:00
Gwendal Roué 7a9b8093ed Fix Swiftlint warnings 2022-11-27 12:46:23 +01:00
Gwendal Roué c7df15faf5 CHANGELOG 2022-11-27 12:41:00 +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é cd16e921fe Tests for primary key definition with NOT NULL constraint by default 2022-11-27 11:47:56 +01:00
Gwendal Roué 8b8e480391 Primary key definition with NOT NULL constraint by default 2022-11-27 11:32:38 +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é a0bfbafd9c Add tests for MutablePersistableRecord on tables without explicit primary key 2022-11-26 16:27:27 +01:00
Gwendal Roué 4e4699ebed Improve inline documentation 2022-11-26 16:26:46 +01:00