Group Group Group Group Group Group Group Group Group

Reference to member 'sqlite' cannot be resolved without a contextual type. Vapor course

I am running into this issue when trying to build, thanks for any help on this error

Reference to member ‘sqlite’ cannot be resolved without a contextual type

@alfred1963 are you running on Xcode 11.4 Beta? If so, that’s a known issue with the 5.2 compiler and you need to provide the full database identifier.

If not, does Acronym conform to SQLiteModel?

1 Like

UPDATE: I found the solution at: https://forums.swift.org/t/vapor-3-swift-5-2-regression/34764

~~Please. I upgrade to Swift 5.2 compiler and now I am getting same error. I didn’t figure out how ‘provide full database identifier’. Could you give me a example?
My Code is
migrations.add(model: Todo.self, database: .sqlite)

1 Like

Try using DatabaseIdentifier<Todo.Database>.sqlite