Skip to content

Conversation

@gblotter
Copy link

In order for this to work, there needs to be an update to SQLite.swift: Foundation.swift -> Needs to have public typealias Datatype = Blob.Datatype added, like so:

extension NSData : Value {

   public typealias Datatype = Blob.Datatype

    public class var declaredDatatype: String {
        return Blob.declaredDatatype
    }

    public class func fromDatatypeValue(dataValue: Blob) -> NSData {
        return NSData(bytes: dataValue.bytes, length: dataValue.bytes.count)
    }

    public var datatypeValue: Blob {
        return Blob(bytes: bytes, length: length)
    }

}

However, in the mean time I added a Foundation+extension.swift and added that line there, so I didn't have to change/rely on a change in SQLite.swift

@gblotter gblotter mentioned this pull request Mar 25, 2016
@gblotter
Copy link
Author

Also, Hopefully solves #8

@gblotter
Copy link
Author

@stephencelis Would love it, if you get a sec, if you'd take a look at this PR 😊

@agisboye
Copy link

I'm afraid I can't get your branch to build. Also, it seems that the SQLite.swift submodule is still not up to date.
screen shot 2016-03-26 at 17 26 45

@gblotter
Copy link
Author

@agisboye are you running Xcode 7.3 and iOS 9.3? (just trying to find similarities/differences to your environment and mine)

@agisboye
Copy link

I am. I've been seeing similar header issues with own attempts to get it to compile.

@gblotter gblotter closed this Mar 29, 2016
@gblotter gblotter deleted the update-SQLite-swift branch March 29, 2016 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants