Gwendal Roué
972789dba3
Replace Array(Type.fetchCursor()) with Type.fetchAll()
2016-11-29 19:02:58 +01:00
Gwendal Roué
a8e266377c
Documentation
2016-11-29 12:02:29 +01:00
Gwendal Roué
ec2017ff72
Cursor.enumerated, filter, flatMap, map now return cursors. Cursor.lazy returns a lazy sequence. Introduce AnyCursor. Force Cursor types to be classes.
2016-11-28 20:34:53 +01:00
Gwendal Roué
829eb7d3a2
SelectStatement.SelectionInfo cleanup
2016-11-27 15:12:08 +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é
c80f0d317a
#147 : Array(cursor) initialiser; base all fetchAll and fetchOne methods on fetchCursor.
2016-11-26 09:13:39 +01:00
Gwendal Roué
b31356aada
#147 : Database.tableExists(_:) and Database.indexes(on:) can now throw database errors
2016-11-26 08:28:32 +01:00
Gwendal Roué
588b9737bf
Revert "Use sqlite3_trace_v2 when available (but the warning on sqlite3_trace remains)"
...
This reverts commit 049e9f1a55 .
2016-11-15 18:38:46 +01:00
Gwendal Roué
049e9f1a55
Use sqlite3_trace_v2 when available (but the warning on sqlite3_trace remains)
2016-11-10 09:11:02 +01:00
Gwendal Roué
6200f5fb62
Fix Xcode 8.1 warning
2016-11-10 06:55:24 +01:00
Gwendal Roué
cc27c19c66
FIXME: sqlite3_rekey is discouraged.
2016-11-08 19:37:28 +01:00
Gwendal Roué
21c41fb145
availability cleanup
2016-11-05 14:37:36 +01:00
Gwendal Roué
915bc6c7cd
Less TODO
2016-10-08 11:36:22 +02:00
Gwendal Roué
2d6abc088f
TableMapping.selectsRowID + passing tests for FTS3Record
2016-10-07 19:17:40 +02:00
Gwendal Roué
1244b6b283
Move == operators inside their adopting type
2016-09-30 06:00:50 +02:00
Gwendal Roué
5ba06a74a0
Remove support for text encodings
2016-09-28 07:14:22 +02:00
Gwendal Roué
5a572b25a0
Refactor the query interface types to enhance extensibility
2016-09-27 23:11:21 +02:00
Gwendal Roué
f573046107
Merge branch 'Swift2.3' of github.com:groue/GRDB.swift
...
Conflicts:
CHANGELOG.md
GRDB.swift.podspec
GRDB/Core/DatabaseValue.swift
GRDB/Core/Row.swift
GRDB/Core/RowAdapter.swift
GRDB/Record/Record.swift
README.md
Support/Info.plist
Tests/Public/Core/DatabaseValue/DatabaseValueTests.swift
Tests/Public/Record/MinimalPrimaryKeyRowIDTests.swift
Tests/Public/Record/MinimalPrimaryKeySingleTests.swift
Tests/Public/Record/PrimaryKeyMultipleTests.swift
Tests/Public/Record/PrimaryKeyRowIDTests.swift
Tests/Public/Record/PrimaryKeySingleTests.swift
Tests/Public/Record/PrimaryKeySingleWithReplaceConflictResolutionTests.swift
2016-09-16 06:46:42 +02:00
Gwendal Roué
f5cb34f506
DatabaseValue no longer adopts StatementColumnConvertible; DatabaseValue.fromDatabaseValue() no longer returns nil for NULL ( fixes #119 )
2016-09-16 05:48:09 +02:00
Gwendal Roué
f825f43528
Upgrade custom SQLite builds to v3.14.1, and restore support for SQLite pre-update hooks
2016-09-15 09:05:09 +02:00
Gwendal Roué
eac0901af0
Refactor database event filtering
2016-09-10 18:28:44 +02:00
Gwendal Roué
7c0ca54249
Swift 3: move some types declarations inside the Database class
2016-09-10 17:52:15 +02:00
Gwendal Roué
df09d0c8bb
Swift 3 and SQLCipher
2016-09-10 16:03:42 +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é
72ab62b21b
Merge branch 'WatchOS' of github.com:groue/GRDB.swift
2016-09-07 22:17:08 +02:00
Gwendal Roué
8a89be6999
Pass test for Database.tableExists() and temporary table
2016-09-07 13:33:31 +02:00
Gwendal Roué
854c070b82
Xcode Version 8.0 beta 6 (8S201h)
2016-08-16 17:47:57 +02:00
Gwendal Roué
b5bb92459d
WatchOS framework (adresses #96 )
2016-08-10 06:27:50 +02:00
Gwendal Roué
8d91141d6a
Swift 3 : lowercase enum cases for DatabasePreUpdateEvent.Kind
2016-08-07 12:25:13 +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é
6cca2fd991
Rename PrimaryKey to PrimaryKeyInfo
2016-08-06 14:21:39 +02:00
Gwendal Roué
54f8550229
Swift 3
2016-08-02 08:38:45 +02:00
Gwendal Roué
f6ae7587ea
More where clause to end of function declarations
2016-08-02 08:20:05 +02:00
Gwendal Roué
2d78d04d52
Update for Xcode Version 8.0 beta 4 (8S188o)
2016-08-01 22:33:50 +02:00
Gwendal Roué
7404c642e3
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseSchemaCache.swift
GRDB/Record/Persistable.swift
GRDB/Record/Record.swift
README.md
Tests/Private/DatabasePoolSchemaCacheTests.swift
Tests/Public/Core/Persistable/MutablePersistableTests.swift
Tests/Public/Core/Persistable/PersistableTests.swift
Tests/Public/Record/RecordSubClassTests.swift
2016-07-30 12:58:10 +02:00
Gwendal Roué
b16656bd23
Partial update WIP: cache & column case insensitivity
2016-07-28 19:28:46 +02:00
Gwendal Roué
548ff068fd
Partial update WIP: implementation
2016-07-28 08:41:22 +02:00
Gwendal Roué
2a91ab07b9
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseSchemaCache.swift
GRDB/Core/Statement.swift
TODO.md
Tests/Private/RecordUniqueIndexTests.swift
2016-07-22 09:01:39 +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é
ebdd6c5a4d
Update for Xcode Version 8.0 beta 3 (8S174q)
2016-07-19 14:01:46 +02:00
Gwendal Roué
b3c12c33b7
Merge branch 'master' into Swift3bis
2016-07-19 08:20:22 +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é
02d2b89a4d
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseScheduler.swift
GRDB/Core/SerializedDatabase.swift
GRDB/Core/Statement.swift
2016-07-08 18:30:16 +02:00
Gwendal Roué
34ff64b103
Rename DatabaseScheduler to SchedulingWatchdog
2016-07-08 18:22:34 +02:00
Gwendal Roué
a288c8d7fb
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB/Core/Database.swift
GRDB/Core/RowAdapter.swift
README.md
Tests/Public/Core/Row/AdapterRowTests.swift
Tests/Public/Core/Row/RowConvertibleTests.swift
2016-07-08 16:57:16 +02:00
Gwendal Roué
e664ab18ee
Fixes #80
2016-07-08 14:30:45 +02:00
Gwendal Roué
b24075ca1c
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseSchemaCache.swift
GRDB/Core/Utils.swift
GRDB/Record/TableMapping.swift
README.md
Tests/Private/DatabasePoolSchemaCacheTests.swift
Tests/Public/Encryption/EncryptionTests.swift
Tests/Public/Record/PrimaryKeyNoneTests.swift
2016-07-07 08:41:17 +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