Cannot invoke initializer for type 'sqlite3_destructor_type'

后端 未结 1 1780
臣服心动
臣服心动 2021-01-13 14:59

So far the answer from Martin R has worked perfectly. But starting with Swift2 it now raises the error

Cannot invoke initializer for type \'sqlite3_d

相关标签:
1条回答
  • 2021-01-13 15:10

    Taken from the github post provided courtesy of @MartinR the answer is

    internal let SQLITE_STATIC = unsafeBitCast(0, sqlite3_destructor_type.self)
    internal let SQLITE_TRANSIENT = unsafeBitCast(-1, sqlite3_destructor_type.self)
    
    0 讨论(0)
提交回复
热议问题