brick
brick copied to clipboard
An intuitive way to work with persistent data in Dart
- Fixes #662 where model dictionary builder fails when Flutter formatter breaks lines after long class names - Replaces fragile string matching with robust regex pattern that handles whitespace including...
In packages/brick_build/lib/src/builders/model_dictionary_builder.dart:67, the code uses a simple string match to find class declarations: `entry.value.contains('class ${annotation.element.name} ')` This fails when Flutter's formatter formats long class declarations and breaks the line after...
Hey peepz, I am using brick + supabase and I am trying to get a query to work and I can't: I have a query of the type ```sql SELECT...
fixed issue: #655
I have the following query that is returning nothing, but according to the data, it should. ```dart final query = Query( where: [ Where('columnA', value: valueA), WherePhrase([ const Or('dateColumn').isExactly(null), const...
## Issue with `WherePhrase` and association columns in Brick Based on the test: https://github.com/GetDutchie/brick/blob/063b85324b1c7d28aa12bd9af1319917e677a912/packages/brick_sqlite/test/query_sql_transformer_test.dart#L366-L387 When I apply similar logic in my code, I get an error from Supabase: ```dart Query(...
I have a many-to-many models like: ```dart // Model A @ConnectOfflineFirstWithSupabase( supabaseConfig: SupabaseSerializable(tableName: "groups"), ) class Group extends OfflineFirstWithSupabaseModel { @Supabase(unique: true) @Sqlite(index: true, unique: true) final String id; [...]...
### Description: When performing an upsert on a model that has many-to-many association can cause Brick to generate an invalid `or: ()` condition, which fails in Supabase with: `PostgrestException(message: "failed...
Supabase adapter tries to serialize nested objects even when null, causing errors with foreign keys
### Describe the bug When using `OfflineFirstWithSupabaseModel` with nested relationships, Brick generates a `Supabase` insert/update that includes nested objects even when they are null. This causes errors like: ```err Could...
Is there any reason why we don't have an exponential backoff? It seems something simple to implement that would reduce the impact of failures on our backend, so I guess...