Skip to content

Commit

Permalink
fix: change incorrect casing iLike to ilike. (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
hampuslavin authored Oct 11, 2024
1 parent 18193f7 commit 96be540
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions docs/06-concepts/06-database/06-filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,19 @@ await User.db.find(

In the example we fetch all users with a name that does not start with B.

### iLike
### ilike

iLike works the same as `like` but is case-insensitive.
`ilike` works the same as `like` but is case-insensitive.

```dart
await User.db.find(
where: (t) => t.name.iLike('a%')
where: (t) => t.name.ilike('a%')
);
```

In the example we fetch all users with a name that starts with a or A.

There is a negated version of iLike that can be used to exclude rows from the result.
There is a negated version of `ilike` that can be used to exclude rows from the result.

```dart
await User.db.find(
Expand Down
2 changes: 1 addition & 1 deletion docs/06-concepts/06-database/07-relation-queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ var user = await Company.db.findById(
employeeId,
include: Company.include(
employees: Employee.includeList(
where: (t) => t.name.iLike('a%')
where: (t) => t.name.ilike('a%')
),
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,19 @@ await User.db.find(
In the example we fetch all users with a name that does not start with B.


### iLike
### ilike

iLike works the same as `like` but is case-insensitive.
`ilike` works the same as `like` but is case-insensitive.

```dart
await User.db.find(
where: (t) => t.name.iLike('a%')
where: (t) => t.name.ilike('a%')
);
```

In the example we fetch all users with a name that starts with a or A.

There is a negated version of iLike that can be used to exclude rows from the result.
There is a negated version of `ilike` that can be used to exclude rows from the result.

```dart
await User.db.find(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ var user = await Company.db.findById(
employeeId,
include: Company.include(
employees: Employee.includeList(
where: (t) => t.name.iLike('a%')
where: (t) => t.name.ilike('a%')
),
),
);`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,19 @@ await User.db.find(

In the example we fetch all users with a name that does not start with B.

### iLike
### ilike

iLike works the same as `like` but is case-insensitive.
`ilike` works the same as `like` but is case-insensitive.

```dart
await User.db.find(
where: (t) => t.name.iLike('a%')
where: (t) => t.name.ilike('a%')
);
```

In the example we fetch all users with a name that starts with a or A.

There is a negated version of iLike that can be used to exclude rows from the result.
There is a negated version of `ilike` that can be used to exclude rows from the result.

```dart
await User.db.find(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ var user = await Company.db.findById(
employeeId,
include: Company.include(
employees: Employee.includeList(
where: (t) => t.name.iLike('a%')
where: (t) => t.name.ilike('a%')
),
),
);`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,19 +148,19 @@ await User.db.find(

In the example we fetch all users with a name that does not start with B.

### iLike
### ilike

iLike works the same as `like` but is case-insensitive.
`ilike` works the same as `like` but is case-insensitive.

```dart
await User.db.find(
where: (t) => t.name.iLike('a%')
where: (t) => t.name.ilike('a%')
);
```

In the example we fetch all users with a name that starts with a or A.

There is a negated version of iLike that can be used to exclude rows from the result.
There is a negated version of `ilike` that can be used to exclude rows from the result.

```dart
await User.db.find(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ var user = await Company.db.findById(
employeeId,
include: Company.include(
employees: Employee.includeList(
where: (t) => t.name.iLike('a%')
where: (t) => t.name.ilike('a%')
),
),
);`
Expand Down

0 comments on commit 96be540

Please sign in to comment.