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

data insertion doesnt bind data correctly #1286

Closed
theMartianAlien opened this issue Nov 14, 2024 · 1 comment
Closed

data insertion doesnt bind data correctly #1286

theMartianAlien opened this issue Nov 14, 2024 · 1 comment

Comments

@theMartianAlien
Copy link

theMartianAlien commented Nov 14, 2024

Pretty new to this one
Added SQLite.swift package using swift package manager. Selected 0.15.3 version

Followed the steps in inserting the record, creating db and reading records.
But when i hit the insert record the column seems to be nonexistent at run time.

Screenshot 2024-11-14 at 9 44 59 AM

This is how I try to call the insert, I was testing on sending an object DataModel to it, it does read the object but cannot seem to pass. The insert statemetn in the terminal suggest there are nothing on the insert statement.

Screenshot 2024-11-14 at 9 52 01 AM
@theMartianAlien theMartianAlien changed the title Inserting records doesnt recognize the connection/syntax? data insertion doesnt bind data correctly Nov 14, 2024
@theMartianAlien
Copy link
Author

Changing the column declaration to SQLite.Expression fixed the issue.

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

1 participant