Rob Ryan

Results 58 comments of Rob Ryan

BTW, the extension might look like: ``` extension FMDatabase { /// This is rendition of executeQuery that handles Swift variadic parameters /// for the values to be bound to the...

@user919 FYI, to use from multiple threads, it's just like it is in Objective-C: Just make sure you instantiate a single `FMDatabaseQueue`, and then use that same, single `FMDatabaseQueue` instance...

You can close when the app terminates, but otherwise there's no need to close it and you generally just keep it open.

I'd suggest using `executeUpdate(values:)`, e.g. : ``` let db = FMDatabase(path: fileURL.path) db.open() do { try db.executeUpdate("create table test (name text, age integer, create_date date)", values: nil) let now =...

Yes, using `INTEGER PRIMARY KEY` is a very common practice. When retrieving this, though, I personally use `longForColumn`, which returns an Objective-C `long` (i.e. 64-bit integer), which is equivalent to...

The error is telling you it can't find the table `item`. So either that database exists but it doesn't have a table called `item`, or the database doesn't exist and...

What does this have to do with FMDB? You're not using FMDB in the above snippet.

Aren’t there [Carthage instructions here](https://github.com/ccgus/fmdb#carthage)?

aliparlar, if you're having problems when doing long network requests, I'd make sure that: - If doing asynchronous network calls, make sure you're not using the same `FMDatabase` instance across...

Out of memory usually means that the `open` failed. Check that return value and see if it was `true`. Perhaps it's having trouble opening the `path` that you specified. Is...