Is anyone familiar with SQLDelight (KMP), i am hav...
# android
l
Is anyone familiar with SQLDelight (KMP), i am having issue with inserting into one table where i have foreign key for example this is my table:
Copy code
CREATE TABLE TimeSlot (
    id INTEGER PRIMARY KEY,
    seasonId INTEGER NOT NULL,
    startTime TEXT NOT NULL,
    endTime TEXT NOT NULL,
    priceLevel INTEGER NOT NULL,
    isWorkday INTEGER NOT NULL,
    FOREIGN KEY (seasonId) REFERENCES Season(id)
);
and than i have insert like this:
Copy code
insertTimeSlot:
INSERT OR REPLACE INTO TimeSlot(id, seasonId, startTime, endTime, priceLevel, isWorkday) VALUES (?, ?, ?, ?, ?, ?);
and whenn i run it fails with generated class for Queries saying
No value passed for parameter 'sql'.
🤔
🤔 1
c
You can reach the developers in #C5HT9AL7Q