Rohan Maity
09/11/2024, 12:34 PMid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
But the generated SqlDelight query still asks for id
for inserting value
Although, I can send null
for id and in the DB it auto increaments but its still counter-intuitive to pass null and expect AutoIncreament
I would expect SqlDelight to generate query where I do not need to send null
I am using SqlDelight 2.0.2
db.Queries.insertTimeCardDetails(
id = null, // autoincrement
detail_uuid = detail.detailUuid,
)
kevin.cianfarini
09/11/2024, 2:37 PMRohan Maity
09/17/2024, 8:02 AMinsertTimeCardDetails:
INSERT OR REPLACE INTO TimeCardDetailDao(timecardDate, startEventId, endEventId, startTime, endTime, type, duration, durationRounded, jobType, notes, address, version, detail_uuid)
VALUES (?, ?,?,?,?, ?, ?, ?, ?, ?, ?, ?, ?);
Rohan Maity
09/17/2024, 8:03 AM