Commit Graph
146 Commits
Author SHA1 Message Date
Gwendal Roué 6550454d1e Replace DatabaseChanges with Database.lastInsertedRowID and Database.changesCount 2016-04-20 21:58:58 +02:00
Gwendal Roué 1136d367c7 Code organization 2016-04-13 08:59:32 +02:00
Gwendal Roué 30f4744199 Remove dead code 2016-04-08 13:13:21 +02:00
Gwendal Roué 4bcff181c7 Back to block-based database accesses.
Rationale: https://medium.com/@gwendal.roue/four-different-ways-to-handle-sqlite-concurrency-db3bcc74d00e
2016-04-08 08:29:58 +02:00
Gwendal Roué 023d757964 Attempt to fix CocoaPods 2016-04-05 08:53:02 +02:00
Gwendal Roué f868d3eead changePassphrase() 2016-04-05 05:51:19 +02:00
Gwendal Roué 9f6c5ccccb Fix availability attributes of localizedCapitalizedString, etc. Restore iOS7 compatibility. 2016-04-03 22:22:06 +02:00
Gwendal Roué eabacfafb2 Encryption tests 2016-04-03 20:39:20 +02:00
Gwendal Roué 2ec2e85679 Passing tests for encrypted databases 2016-04-03 18:42:31 +02:00
Gwendal Roué 20a16de9de DatabaseWriter.setKey() and reKey() 2016-04-03 17:58:03 +02:00
Gwendal Roué 0473d232ed Tests for GRDBOSX, GRDBiOS, and GRDBCipherOSX (without encryption) 2016-04-03 14:04:04 +02:00
Gwendal Roué 3e0fcc4b87 New GRDBCipherOSX target + tests 2016-04-03 11:40:34 +02:00
Gwendal Roué 06095ec343 Fix #37 2016-03-31 10:27:12 +02:00
Gwendal Roué 4b479ad327 Merge branch 'master' into FetchedRecordsController
Conflicts:
	CHANGELOG.md
	DemoApps/GRDBDemoiOS/GRDBDemoiOS/Assets.xcassets/AppIcon.appiconset/Contents.json
	DemoApps/GRDBDemoiOS/GRDBDemoiOS/Database.swift
	TODO.md
2016-03-28 18:54:59 +02:00
Gwendal Roué 9a18ab44a6 Default unicode-aware collations 2016-03-28 18:12:29 +02:00
Gwendal Roué a97530bde8 The Query interface no longer use non-unicode aware UPPER and LOWER functions 2016-03-28 16:35:20 +02:00
Gwendal Roué d170b0d0e1 DatabaseEvent: make it lazy 2016-03-27 14:39:12 +02:00
Gwendal Roué 3e3ba6e7ed FetchedRecordsController optimization for DatabasePool: release the writer dispatch queue before the end of the fetch 2016-03-27 14:22:32 +02:00
Gwendal Roué 049148305f Simplify throwing initializers since Swift 2.2 allows partial initialization 2016-03-22 08:28:55 +01:00
Gwendal Roué c6f96906ca Avoid build errors by using ad-hoc Swift modules that import the right sqlite3 header depending on the platform (MacOSX, iPhoneOS, iPhoneSimulator). 2016-03-17 08:54:09 +01:00
Gwendal Roué a308ffebeb Merge branch 'master' of github.com:groue/GRDB.swift into Swift2.2 2016-03-17 08:02:06 +01:00
Gwendal Roué 19da676caf Configuration.fileAttributes: apply file attributes to database files 2016-03-13 14:16:17 +01:00
Gwendal Roué a81a29c952 Documentation 2016-03-12 18:48:57 +01:00
Gwendal Roué 9c3e677e0c Make Database.read() conform to the isolation level required by DatabaseReader. 2016-03-12 18:36:06 +01:00
Gwendal Roué 1df41fbd29 Tests for DatabaseQueue/Pool connection closing 2016-03-12 13:53:49 +01:00
Gwendal Roué e3ef424a41 DatabaseReader and DatabaseWriter cleanup 2016-03-12 12:00:06 +01:00
Gwendal Roué 9e9fafcc5c Documentation 2016-03-12 08:21:17 +01:00
Gwendal Roué ae8ffeabc9 Cleanup 2016-03-12 07:12:35 +01:00
Gwendal Roué b81f57f1c9 Documentation 2016-03-11 19:35:25 +01:00
Gwendal Roué 47d1202e57 Introduce DatabaseWriter 2016-03-11 18:42:02 +01:00
Gwendal Roué 61f944fdaa Cleanup 2016-03-11 18:12:42 +01:00
Gwendal Roué eb513e87d2 Transaction observers are now added to database queues and pools 2016-03-11 17:08:31 +01:00
Gwendal Roué 3e75af7c14 Make DatabaseReader a class protocol 2016-03-11 14:34:49 +01:00
Gwendal Roué 5fd2212278 DatabaseReader WIP 2016-03-11 08:13:10 +01:00
Gwendal Roué 6f4a29e6f8 DatabaseReader WIP 2016-03-11 07:34:44 +01:00
Gwendal Roué 1fcc8c764f Custom SQL functions are collations are now added to database queues and pools. 2016-03-10 13:50:47 +01:00
Gwendal Roué 5d229373e6 Memory management: clearMemory() and DatabasePool.closeReaderConnections() 2016-03-10 08:51:31 +01:00
Gwendal Roué 6b344b8566 DatabasePool documentation 2016-03-10 06:06:21 +01:00
Gwendal Roué 6bd8f79399 DatabasePool read() method opens a DEFERRED transaction so that it won’t let the writer alter the database state between two select statement. 2016-03-09 21:45:20 +01:00
Gwendal Roué 15b3809a50 DatabasePool: forbid transactions and savepoints in readers 2016-03-09 20:06:31 +01:00
Gwendal Roué 526e065e7d Database schema cache tests for DatabasePool and DatabaseQueue 2016-03-09 18:15:18 +01:00
Gwendal Roué 5ac0eda8a6 Share database schema cache between DatabasePool readers and writer 2016-03-09 17:31:24 +01:00
Gwendal Roué 1fee42bee9 Remove useless Statement.readOnly 2016-03-09 15:44:38 +01:00
Gwendal Roué fff402f2b1 Introduce DatabasePool which provides several readers and a single writer on a single database in WAL Mode 2016-03-09 08:21:36 +01:00
Gwendal Roué 0091de918b Extract SerializedDatabase from DatabaseQueue 2016-03-09 07:54:06 +01:00
Gwendal Roué d18d2a5921 Statement.readOnly 2016-03-08 20:40:12 +01:00
Gwendal Roué f863a263b7 Cleanup 2016-03-07 18:24:31 +01:00
Gwendal Roué 03b89ea78f Typo 2016-02-11 00:10:54 +01:00
Gwendal Roué d74cf435ed Swift2.2 2016-02-10 19:09:28 +01:00
Gwendal Roué bb7fe8cd7d SQL support cleanup 2016-02-10 08:25:15 +01:00