Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When create a table, Xcode give a note :Instance method 'column(_:primaryKey:check:)' requires the types 'String' and 'Int64' be equivalent #1285

Open
cxycxy1111 opened this issue Nov 13, 2024 · 2 comments

Comments

@cxycxy1111
Copy link

Xcode version: Version 16.0 (16A242d)
Sqlite.swift version: 0.14.0

my code is:
let id = Expression<Int64>(value: "id"); ... try? db.run(tbl.create { t in t.column(id, primaryKey: .autoincrement) ... })
the Xcode give me a notification:Instance method 'column(_:primaryKey:check:)' requires the types 'String' and 'Int64' be equivalent
in the line: t.column(id, primaryKey: .autoincrement)

@KKBytes0629
Copy link

Xcode 16?
I encountered the same problem, like this?

iShot_2024-11-25_11 30 01 ![Uploading iShot_2024-11-25_11.31.38.png…]()

@KKBytes0629
Copy link

I solved, look #1277

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

No branches or pull requests

2 participants