Gwendal Roué
c700f5fc68
Move TableMapping deletion methods to MutablePersistable (prevent TableMapping from being able to modify the database)
2017-08-18 17:15:10 +02:00
Gwendal Roué
376d295853
Replace TableMapping.selectsRowID with TableMapping.databaseSelection
2017-08-18 16:27:24 +02:00
Gwendal Roué
83c3745165
Documentation
2017-06-30 07:47:14 +02:00
Gwendal Roué
56a4a964b7
QueryInterfaceRequest.order() clears the isReversed flag
2017-06-30 07:47:13 +02:00
Gwendal Roué
56869577d4
Documentation
2017-06-20 07:54:19 +02:00
Gwendal Roué
a3ad726111
Cleanup
2017-06-20 07:54:19 +02:00
Gwendal Roué
8ea215931e
Refactor Request
...
Rename TypedRequest's associated type from `Fetched` to `RowConverter`, because if TypedRequest needs a type that can decode rows, the type of the decoded rows does not need to be identical to the decoder type.
Introduce AdaptedRequest and AdaptedTypedRequest as results of Request.adapted(_:) and TypedRequest.adapted(_:), instead of the generic AnyRequest and AnyTypedRequest.
2017-06-20 07:54:19 +02:00
Gwendal Roué
dae4ae1c6b
Reduce internal coupling
2017-04-22 11:12:43 +02:00
Gwendal Roué
9b4e55be28
Documentation for Request.fetchCount() ( https://github.com/groue/GRDB.swift/issues/176#issuecomment-282783884 )
2017-03-01 08:24:43 +01:00
Gwendal Roué
42ebffc4fc
Keep Request.fetchCount() simple ( https://github.com/groue/GRDB.swift/issues/176#issuecomment-282783884 )
2017-03-01 07:56:17 +01:00
Gwendal Roué
2d2c596f75
Add Request.fetchCount(). Implements https://github.com/groue/GRDB.swift/issues/176#issuecomment-282783884
2017-03-01 05:32:52 +01:00
Gwendal Roué
cb08660a78
Rename FetchRequest -> Request
2016-12-08 13:56:05 +01:00
Gwendal Roué
89e7a62d99
Introduce AnyFetchRequest, TypedFetchRequest, AnyTypedFetchRequest
2016-12-07 22:21:19 +01:00
Gwendal Roué
74e89c542a
Cleanup
2016-12-07 18:45:14 +01:00
Gwendal Roué
527aed0ea3
Documentation
2016-11-29 14:17:41 +01:00
Gwendal Roué
ac6c7f6a35
#147 : fetchAll() and fetchOne() can now throw database errors.
2016-11-26 22:38:40 +01:00
Gwendal Roué
af6e31dcdf
#147 : The fetch method have been removed, along with DatabaseSequence and DatabaseIterator.
2016-11-26 21:14:10 +01:00
Gwendal Roué
a548212f27
#147 : tests for QueryInterfaceRequest.fetchCursor(_:) and (RowConvertible & TableMapping).fetchCursor(_:)
2016-11-26 11:20:35 +01:00
Gwendal Roué
612c963105
TODO
2016-11-26 10:23:41 +01:00
Gwendal Roué
b9fea2ea12
Introduce DatabaseCursor (addresses #147 )
...
let cursor = try Row.fetchCursor(db, "SELECT * FROM persons)
while let row = try cursor.step() { ... }
2016-11-25 18:34:16 +01:00
Gwendal Roué
2fd3ded6e2
TableMapping.none()
2016-10-17 09:09:17 +02:00
Gwendal Roué
fc49643860
Remove QueryInterfaceRequest public initializer
2016-10-08 13:06:46 +02:00
Gwendal Roué
829451486e
Documentation
2016-10-08 12:18:48 +02:00
Gwendal Roué
2d6abc088f
TableMapping.selectsRowID + passing tests for FTS3Record
2016-10-07 19:17:40 +02:00
Gwendal Roué
0936793b23
TODO
2016-10-07 17:35:07 +02:00
Gwendal Roué
5a572b25a0
Refactor the query interface types to enhance extensibility
2016-09-27 23:11:21 +02:00
Gwendal Roué
365e44e376
TableMapping.deleteAll(db)
2016-09-17 12:50:57 +02:00
Gwendal Roué
a8b067885f
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
README.md
TODO.md
2016-09-08 08:37:58 +02:00
Gwendal Roué
b191323e2b
Query Interface deletion documentation
2016-09-07 18:06:30 +02:00
Gwendal Roué
e4ae0988a4
QueryInterfaceRequest.deleteAll (for @pakko972)
2016-09-07 14:10:16 +02:00
Gwendal Roué
2c3bf06740
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/QueryInterface/SQLCollation.swift
GRDB/QueryInterface/SQLFunction.swift
GRDB/QueryInterface/SQLOperator.swift
GRDB/QueryInterface/SQLSelectQuery.swift
GRDB/QueryInterface/SQLTableBuilder.swift
2016-08-07 12:57:48 +02:00
Gwendal Roué
a132b58227
Promote _SQLExpressible protocol to SQLExpressible
2016-08-07 12:46:19 +02:00
Gwendal Roué
00a1eebf60
Swift 3 Grand Renaming: SQLColumn -> Column
2016-08-07 10:38:24 +02:00
Gwendal Roué
bcd6e6767a
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseSchemaCache.swift
GRDB/QueryInterface/SQLCollation.swift
README.md
TODO.md
Tests/Public/Core/DatabaseValueConvertible/DatabaseValueConversionTests.swift
Tests/Public/Core/StatementColumnConvertible/StatementColumnConvertibleTests.swift
Tests/Public/QueryInterfaceRequest/QueryInterfaceRequestTests.swift
2016-08-07 10:11:31 +02:00
Gwendal Roué
77278e77eb
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/QueryInterface/SQLCollation.swift
GRDB/QueryInterface/SQLSelectQuery.swift
2016-07-22 13:48:39 +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é
ba24c55d41
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/QueryInterface/SQLCollation.swift
GRDB/QueryInterface/SQLSelectQuery.swift
2016-07-22 13:04:20 +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é
23ffef8943
Swift3: turn TableMapping.databaseTableName() into a read-only property
2016-07-20 18:38:56 +02:00
Gwendal Roué
68f4f011b7
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB/QueryInterface/QueryInterfaceRequest.swift
README.md
Tests/Public/QueryInterfaceRequest/QueryInterfaceRequestTests.swift
2016-07-19 14:08:05 +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é
82b801498a
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/DatabaseValueConvertible.swift
GRDB/Core/Row.swift
GRDB/Core/StatementColumnConvertible.swift
GRDB/FetchRequest/FetchRequest.swift
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/Record/RowConvertible.swift
README.md
Tests/Public/Core/DatabaseValueConvertible/DatabaseValueConvertibleFetchTests.swift
Tests/Public/Core/SQLiteStatementConvertible/SQLiteStatementConvertibleFetchTests.swift
Tests/Public/FetchRequest/FetchRequestTests.swift
Tests/Public/Foundation/NSDateTests.swift
2016-06-29 13:38:24 +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é
8992b4a284
Move FetchRequest to Core
2016-06-28 09:09:06 +02:00