Gwendal Roué
8991232681
SQLTableBuilder: alter(table:) { $0.add(column:) }
2016-08-05 20:31:18 +02:00
Gwendal Roué
31a0604341
SQLTableBuilder: rename(table:to:)
2016-08-05 20:04:28 +02:00
Gwendal Roué
8b6ac9c736
SQLTableBuilder: create(index:), drop(index:)
2016-08-05 19:58:12 +02:00
Gwendal Roué
ac5279fa70
Use SQLCollation instead of String
2016-08-05 18:51:06 +02:00
Gwendal Roué
b88d2fe111
SQLTableBuilder: table.check()
2016-08-05 14:03:50 +02:00
Gwendal Roué
9b9b4d4bdf
SQLTableBuilder: column.defaults() and column.check() now accept SQL literal
2016-08-05 13:52:09 +02:00
Gwendal Roué
41037eb425
SQLTableBuilder: column.defaults() requires a constant value (so does SQLite)
2016-08-05 13:33:47 +02:00
Gwendal Roué
ba126f1f1a
SQLTableBuilder: code organization
2016-08-05 13:24:10 +02:00
Gwendal Roué
88894a6d54
SQLTableBuilder: TODO
2016-08-05 09:12:25 +02:00
Gwendal Roué
61cb276b94
SQLTableBuilder: table.foreignKey()
2016-08-05 09:05:32 +02:00
Gwendal Roué
f83f5455c2
SQLTableBuilder: table.primaryKey(), table.uniqueKey()
2016-08-05 08:48:46 +02:00
Gwendal Roué
09e409cb79
SQLTableBuilder: documentation
2016-08-05 08:25:46 +02:00
Gwendal Roué
39e3cba80e
SQLTableBuilder: column.references(deferred: true)
2016-08-05 08:24:00 +02:00
Gwendal Roué
8246f1c990
SQLTableBuilder: column.references()
2016-08-05 08:17:09 +02:00
Gwendal Roué
10c32381d4
SQLTableBuilder: column.collate()
2016-08-04 23:05:56 +02:00
Gwendal Roué
5b6efbbb5f
SQLTableBuilder: column.defaults()
2016-08-04 22:57:14 +02:00
Gwendal Roué
5edb5276f8
SQLTableBuilder: column.check()
2016-08-04 13:57:32 +02:00
Gwendal Roué
b1109780ed
SQLTableBuilder: column.notNull() and unique()
2016-08-04 13:48:08 +02:00
Gwendal Roué
62070c50ff
SQLTableBuilder WIP
2016-08-04 13:38:39 +02:00
Gwendal Roué
3e28fd69b3
SQLTableBuilder: table & column primary key options
2016-08-04 09:10:32 +02:00
Gwendal Roué
4cf6f7bd7c
SQLTableBuilder: first passing test
2016-08-04 08:51:00 +02:00
Gwendal Roué
0fb1eec3cd
Row adopts DictionaryLiteralConvertible
2016-07-31 06:18:16 +02:00
Gwendal Roué
b16656bd23
Partial update WIP: cache & column case insensitivity
2016-07-28 19:28:46 +02:00
Gwendal Roué
df7791a3e7
Partial update WIP: documentation
2016-07-28 09:05:46 +02:00
Gwendal Roué
176a23fe97
Partial update WIP: tests
2016-07-28 08:53:17 +02:00
Gwendal Roué
548ff068fd
Partial update WIP: implementation
2016-07-28 08:41:22 +02:00
Gwendal Roué
50ce433bcb
Partial update WIP: public API
2016-07-28 08:25:08 +02:00
Gwendal Roué
c6f2c8a3f5
Remove dead code
2016-07-22 13:40:07 +02:00
Gwendal Roué
e037972dbb
Remove dead code
2016-07-22 13:38:31 +02:00
Gwendal Roué
034a24dfe3
_SQLExpression.sql(_:_:) turns all values into safely escaped SQL literals when given nil arguments. (addresses #83 )
2016-07-22 12:56:26 +02:00
Gwendal Roué
8ecfb872b6
Simplify DatabaseValueConvertible.sqlLiteral
2016-07-22 10:01:36 +02:00
Gwendal Roué
111d11a71b
DatabaseValueConvertible.sqlLiteral returns a safely escaped SQL literal (addresses #83 )
2016-07-22 08:49:35 +02:00
Gwendal Roué
0e46ff2b6d
Documentation
2016-07-21 19:10:41 +02:00
Gwendal Roué
fcf90a053a
Database.indexes(on:) and Database.table(_:hasUniqueKey:) are public
2016-07-21 19:08:27 +02:00
Gwendal Roué
8b09b2cdba
Improve error messages for MutablePersistable.update(), delete() & exist() (see #81 )
2016-07-20 13:49:16 +02:00
Gwendal Roué
0677a8a21a
The query interface order method replaces any previously applied ordering (see #85 )
2016-07-19 08:53:43 +02:00
Gwendal Roué
df32c1c5d5
Allow SelectStatement to perform database changes - Fixes #80 and #82 for good.
2016-07-18 12:57:38 +02:00
Gwendal Roué
34ff64b103
Rename DatabaseScheduler to SchedulingWatchdog
2016-07-08 18:22:34 +02:00
Gwendal Roué
e8a9035e68
Simplify DatabaseScheduler, and let SerializedDatabase implement the serialization constraints.
2016-07-08 17:38:52 +02:00
Gwendal Roué
e664ab18ee
Fixes #80
2016-07-08 14:30:45 +02:00
Gwendal Roué
b78c5b32c6
Documentation
2016-07-08 10:01:23 +02:00
Gwendal Roué
4ddc8f950e
Row adapters: rename AdaptedColumnsDescription to ConcreteColumnMapping
2016-07-08 09:52:04 +02:00
Gwendal Roué
358c3ab0c3
Row adapters: rename "variants" to "scopes"
2016-07-08 08:44:41 +02:00
Gwendal Roué
e5bf8a8e75
Fix GRDBiOS
2016-07-06 21:09:24 +02:00
Gwendal Roué
d35b65c9d2
#56 : cleanup
...
- Dabase.indexes(tableName) returns actual indexes (no more fake index on INTEGER PRIMARY KEY column)
- Database.colums(_:uniquelyIdentifyRowsIn:) checks indexes, and primary key
- DatabaseSchemaCache caches table indexes (with invalidation on CREATE/DROP INDEX statements)
2016-07-06 19:09:25 +02:00
Gwendal Roué
0f27299586
#56 : fetchOne(_:key:Dictionary) and deleteOne(_:key:Dictionary) raise a fatal error when there is no unique index on the key columns.
2016-07-06 08:39:18 +02:00
Gwendal Roué
baff716ef6
#56 : fetchOne(_:key:Dictionary) performs the same unique index check as deleteOne()
2016-07-06 08:18:14 +02:00
Gwendal Roué
1141676223
#56 : Database.indexes(tableName) includes the implicit unique index on INTEGER PRIMARY KEY column.
2016-07-05 22:33:56 +02:00
Gwendal Roué
a6ce80d39b
#56 : TableMapping.deleteOne(_🔑 ), TableMapping.deleteAll(_:keys:)
2016-07-05 22:16:23 +02:00
Gwendal Roué
21e9e64b3d
DatabaseValueConvertible and StatementColumnConvertible can now be fetched through a RowAdapter. DatabaseValueConvertible: raise a fatal error instead of converting to nil for invalid conversions triggered by fetch() methods.
2016-06-28 13:54:45 +02:00