Mention JSON support in expressions page

This commit is contained in:
Simon Binder 2023-11-27 23:45:57 +01:00
parent 434982ac85
commit 99bb9e0fe0
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 7 additions and 1 deletions

View File

@ -80,7 +80,7 @@ bitwise operations:
{% include "blocks/snippet" snippets = snippets name = 'bitwise' %}
## Nullability
## Null checks {#nullability}
To check whether an expression evaluates to `NULL` in SQL, you can use the `isNull` extension:
```dart
@ -131,6 +131,12 @@ select(animals)..where((a) => a.amountOfLegs.isIn([3, 7, 4, 2]);
Again, the `isNotIn` function works the other way around.
## JSON
Support for common JSON operators is provided through `package:drift/extensions/json1.dart`.
This provides things like `jsonExtract` to extract fields from JSON or `jsonEach` to query
nested JSON structures. For more details, see the [JSON support]({{ 'select.md#json-support' | pageUrl }}) section on the page about selects or [this more complex example]({{ '../Examples/relationships.md#with-json-functions' | pageUrl }}).
## Aggregate functions (like count and sum) {#aggregate}
[Aggregate functions](https://www.sqlite.org/lang_aggfunc.html) are available