jessewilson
12/31/2021, 11:03 PMjessewilson
12/31/2021, 11:04 PMjessewilson
12/31/2021, 11:04 PMdimsuz
01/03/2022, 1:17 PM1.5.3
generates the following code in DatabaseImpl
and compilation fails with `Unresolved reference: _value`:
public override fun select_default_with_query(`value`: String): Query<UserWithSubscripiton> =
select_default_with_query(value_) { id, username, avatarTemplate, email -> ... }
Query is like this (simplified):
select_default_with_query:
SELECT *
FROM UserWithSubscripiton
WHERE username LIKE ('%' || ?1 || '%') OR email LIKE ('%' || ?1 || '%')
I copied it from the project with older sqldelight version where it worked.
Is this a bug or am I doing this wrong somehow?
Oh, and this is a KMP project now.dimsuz
01/03/2022, 1:20 PMBenoit Quenaudon
01/03/2022, 1:31 PM`value` != value_
is probably the problem and I think that's a bug worth filling.dimsuz
01/03/2022, 1:38 PMjw
01/03/2022, 1:39 PMdimsuz
01/03/2022, 1:49 PMMiSikora
01/04/2022, 9:37 PM(…) If the next token is a number, this method will return its string form.
Colton Idle
01/04/2022, 10:03 PMRak
01/05/2022, 4:21 PMjw
01/05/2022, 4:22 PMjw
01/05/2022, 4:22 PMjw
01/05/2022, 4:22 PMhfhbd
01/06/2022, 2:25 PMGetA
and GetB
, two identical classes.alec
01/06/2022, 2:29 PMalec
01/06/2022, 2:30 PMalec
01/06/2022, 2:31 PMval getA = myQueries.getA("some parameter")
val getB = myQueries.getB("some other parameter", ::GetA)
hfhbd
01/06/2022, 2:33 PMjw
01/06/2022, 5:01 PMFanilog
01/06/2022, 5:04 PMColton Idle
01/06/2022, 7:13 PMephemient
01/06/2022, 7:27 PMColton Idle
01/06/2022, 7:33 PMephemient
01/06/2022, 7:37 PM@Header("Authorization")
parameters. I think you should be able to pass a User object there, and register a converter from User to header string, and have it all work out? haven't actually tried that thougheygraber
01/06/2022, 7:44 PMjw
01/06/2022, 7:47 PMjessewilson
01/06/2022, 7:51 PMspierce7
01/07/2022, 3:17 AM