Malcolm Hall

Results 133 comments of Malcolm Hall

Do you know why?

This might work now with the recent update to do with table prefixes

Raw can sometimes cause errors like that. If you output the result of ->toSql() it can help figure it out why it is not valid SQL. Also it may be...

Its best to fully quality column names in scopes, see the scopeDistance code

I think we'll learn a lot from seeing the SQL it generates

Thanks for the reply, very interesting stuff, and through your link I also discovered Dingo and Fractal which look useful. Personally I don't want stateless because I need a logout...

I'd really like to see this feature too. If the same user can't be logged in simultaneously on all their devices its pretty useless.

It's easy done with a StateObject. However I suppose that isn't available in the old OS version you were trying to back port AppStorage to. On the other hand if...

If `update()` is called then SwiftUI has already detected a difference and will also run `body` next. Try to make the `AppStorageCompat` struct be identical every time after its `init`....

Doing 1000 queries will be slow regardless. Instead, use an id IN array predicate so one query fetches all objects.