Commit Graph
72 Commits
Author SHA1 Message Date
Gwendal Roué 9bf81ef702 Don’t install transaction observer hooks unless there is at least one observer 2016-01-16 14:33:46 +01:00
Gwendal Roué d97f9c79ee propagateDatabaseWillCommit -> wilCommit, etc 2016-01-15 19:20:27 +01:00
Pascal Edmond b29869e0cd Database Transaction Observation : allow multiple observers 2016-01-15 14:56:22 +01:00
Pascal Edmond 56406d6ca5 WIP : Welcome FetchedRecordsController 2016-01-15 14:53:54 +01:00
Gwendal Roué 706f936831 Database.swift organization 2016-01-15 09:17:27 +01:00
Gwendal Roué 5d9363a61d Database.swift organization 2016-01-15 09:14:41 +01:00
Gwendal Roué 474b28366b Improve names of PrimaryKey enum cases 2016-01-15 08:35:08 +01:00
Gwendal Roué 7053632a72 Improve performance of binding named values 2016-01-13 21:26:26 +01:00
Gwendal Roué f6f991a2cb Statement arguments mismatch is always a programming error that crashes. 2016-01-10 19:03:06 +01:00
Gwendal Roué a8560c8fe1 Cache primary keys information 2016-01-10 15:57:44 +01:00
Gwendal Roué 8c07d610ec Experimental support for prepared statement cache 2016-01-10 14:12:38 +01:00
Gwendal Roué 9f0b7df490 Compare insertion performance with FMDB & SQLite.swift 2016-01-09 13:30:05 +01:00
Gwendal Roué 868636f313 Prefer SQLITE_MISUSE for statement argument validation errors 2016-01-08 13:48:33 +01:00
Gwendal Roué 0345d482b2 Statement.arguments is a non-optional StatementArguments. Remove StatementArguments.Default. 2016-01-08 10:33:30 +01:00
Gwendal Roué ddf0b5de70 Update CrashTests.swift, and add GRDBOSXCrashTests target which runs crash tests only. 2016-01-07 14:11:30 +01:00
Gwendal Roué ba67031ca0 Minor 2016-01-07 08:47:55 +01:00
Gwendal Roué 589647ca20 Robustness of Database.execute() with multiple statements. Remove Database.executeMultiStatement() introduced by #6. 2016-01-07 07:37:13 +01:00
Gwendal Roué aad3d5efa5 Database.execute() now accepts multiple statements 2016-01-06 23:37:35 +01:00
Gwendal Roué 04d7c2b511 Methods that build prepared statement can now throw an error. 2015-12-28 21:29:29 +01:00
Gwendal Roué dcc4b303f9 Database now traces all SQL statements, including setup statements. 2015-12-28 21:15:47 +01:00
Gwendal Roué f8ad2f2f6a Use precondition() when validating user input 2015-12-17 10:23:19 +01:00
Gwendal Roué 5dc22f6dd7 More compliance to Swift 3 API Design Guidelines 2015-12-16 12:09:04 +01:00
Gwendal Roué 93e7dc8709 Make DatabaseValueConvertible a subprotocol of RowConvertible. Drop RowConvertible dictionary initializers. 2015-12-14 06:48:38 +01:00
Gwendal Roué 1f3f2d04eb Instead of disabling schema cache throughout the migrations, clear the schema cache after each migration. 2015-12-11 13:05:10 +01:00
Gwendal Roué e9c55f47c6 Database.clearSchemaCache(). Migrations are run with disabled schema cache. 2015-12-10 14:24:55 +01:00
Gwendal Roué bb9117bdb6 Better collation implementation 2015-12-02 08:48:55 +01:00
Gwendal Roué da525b1856 Fix collations: sqlite does not provide \0 terminated C strings, but UTF8 buffers. 2015-12-02 08:29:55 +01:00
Gwendal Roué bf48bd6ac2 Remove a bunch of self. 2015-12-01 09:07:55 +01:00
Gwendal Roué 0be1117bd0 Collations WIP 2015-11-20 14:17:33 +01:00
Gwendal Roué 186732fb05 Collations WIP 2015-11-20 14:12:03 +01:00
Gwendal Roué 5f0f6745a8 Functions 2015-11-19 14:01:47 +01:00
Gwendal Roué 6afcc59c05 Documentation 2015-11-19 08:29:05 +01:00
Gwendal Roué aad7218df6 Functions 2015-11-19 08:06:41 +01:00
Gwendal Roué 23a9322e5e Functions 2015-11-18 22:20:55 +01:00
Gwendal Roué a84014402b Functions 2015-11-18 20:54:18 +01:00
Gwendal Roué 865431c58a Functions 2015-11-18 18:18:31 +01:00
Gwendal Roué 1e3d9f16df StatementArguments.Default is used in place of nil for default parameter values. 2015-11-13 11:46:25 +01:00
Gwendal Roué b7147ba64c TransactionObserverType methods are no longer optional. 2015-11-05 14:37:39 +01:00
Gwendal Roué 136a9fe6f6 Database.inTransaction() 2015-11-04 22:31:19 +01:00
Gwendal Roué e4f10c8beb Better fetch() vs. fetchAll() documentation and runtime warning. 2015-10-29 08:48:28 +01:00
Gwendal Roué 18306fcd64 Use /// for documentation comments, since Xcode 7 has weird behavior with /** 2015-10-27 08:30:24 +01:00
Gwendal Roué 1b6015afbf Cleanup 2015-10-15 13:12:19 +02:00
Gwendal Roué aab146ad23 Import Foundation when required 2015-10-14 15:49:14 +02:00
Gwendal Roué ea2c862b22 Expose raw SQLite connection and statement handles 2015-10-02 09:00:32 +02:00
Gwendal Roué e5d6dcea4f Update obsolete code 2015-10-02 08:24:33 +02:00
Gwendal Roué 4069ea4937 Documentation 2015-09-30 08:31:03 +02:00
Gwendal Roué 94408de61b Use sqlite3_trace for tracing SQL 2015-09-30 08:15:34 +02:00
Gwendal Roué a3e46f53f2 Fix documentation layout 2015-09-29 08:28:55 +02:00
Gwendal Roué 7f6b13d304 TransactionObserverType documentation 2015-09-28 22:23:48 +02:00
Gwendal Roué 64619caebc TransactionObserverType implementation documentation 2015-09-28 20:34:32 +02:00