Gwendal Roué
00a032e6b0
SQLTableBuilder documentation
2016-08-05 22:58:03 +02:00
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é
f2a7706bdf
SQLTableBuilder: test ordering of DSL statements is not the ordering of SQL clauses
2016-08-05 14:06:11 +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é
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é
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é
8332dc188a
SQLTableBuilder tests
2016-08-04 13:34:14 +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é
a2b0a57971
Realm 1.0.2
2016-08-03 13:27:50 +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é
176a23fe97
Partial update WIP: tests
2016-07-28 08:53:17 +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é
111d11a71b
DatabaseValueConvertible.sqlLiteral returns a safely escaped SQL literal (addresses #83 )
2016-07-22 08:49:35 +02:00
Gwendal Roué
fcf90a053a
Database.indexes(on:) and Database.table(_:hasUniqueKey:) are public
2016-07-21 19:08:27 +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é
34ff64b103
Rename DatabaseScheduler to SchedulingWatchdog
2016-07-08 18:22:34 +02:00
Gwendal Roué
88e8c2ba33
#80 cleanup
2016-07-08 16:10:38 +02:00
Gwendal Roué
e664ab18ee
Fixes #80
2016-07-08 14:30:45 +02:00
Gwendal Roué
358c3ab0c3
Row adapters: rename "variants" to "scopes"
2016-07-08 08:44:41 +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é
16a3b88db5
Document how to encrypt an existing database (should help #77 )
2016-07-05 14:37:28 +02:00
Gwendal Roué
aaf184ddb3
Tests for StatementColumnConvertible fetching methods with adapter
2016-06-28 14:46:26 +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
Gwendal Roué
cae3d7b321
Support for NSUUID
2016-06-20 22:37:31 +02:00
Gwendal Roué
e0ea5af18e
Refactor database events filtering
2016-06-20 20:38:31 +02:00
Gwendal Roué
6a466fcb12
Detailed database changes observation
2016-06-20 15:21:14 +02:00
Gwendal Roué
9a397c1ff8
Emoji tests
2016-06-19 11:14:11 +02:00
Gwendal Roué
219899fc9b
Query Interface arguments to SQL snippets
2016-06-18 14:49:17 +02:00
Gwendal Roué
a7ac615bb2
Merge branch 'master' into RowAdapter2
2016-06-09 07:33:42 +02:00
Gwendal Roué
a8df726bff
NSDecimalNumber.databaseValue only returns a double when the decimal number does not contain an integer that fits in Int64.
2016-06-08 23:14:49 +02:00
Gwendal Roué
a882a5f346
RowAdapter documentation
2016-06-08 20:54:25 +02:00