I have a table create with id as AutoIncreament ``...
# squarelibraries
r
I have a table create with id as AutoIncreament
Copy code
id 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
Copy code
db.Queries.insertTimeCardDetails(
                        id = null, // autoincrement
                        detail_uuid = detail.detailUuid,
                    )
k
What does your insert statement look like?
1
r
this is what insert query looks like
Copy code
insertTimeCardDetails:
INSERT OR REPLACE INTO TimeCardDetailDao(timecardDate, startEventId, endEventId, startTime, endTime, type, duration, durationRounded, jobType, notes, address, version, detail_uuid)
VALUES (?, ?,?,?,?, ?, ?, ?, ?, ?, ?, ?, ?);
I get this lint error from IDE