Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ilike function doesnt exist in astro:db #13308

Closed
1 task
renhiyama opened this issue Feb 24, 2025 · 1 comment · Fixed by #13314
Closed
1 task

ilike function doesnt exist in astro:db #13308

renhiyama opened this issue Feb 24, 2025 · 1 comment · Fixed by #13314
Labels
- P2: nice to have Not breaking anything but nice to have (priority) good first issue Good for newcomers. If you need additional guidance, feel free to post in #dev on Discord pkg: db

Comments

@renhiyama
Copy link

Astro Info

Astro                    v5.1.8
Node                     v22.7.0
System                   Linux (x64)
Package Manager          bun
Output                   server
Adapter                  @astrojs/netlify
Integrations             @astrojs/tailwind
                         @astrojs/react
                         astro:db
                         @astrojs/db/file-url

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

Image

The like function says ilike function exists.

Image

Importing ilike function would show an error though.

We obviously cant mix and match drizzle-orm ilike functions and astro:db functions. It would show an error.

Image

What's the expected result?

ilike function should exist in astro:db

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-v8h3degz?file=src%2Fpages%2Findex.astro

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Feb 24, 2025
@ematipico
Copy link
Member

ematipico commented Feb 25, 2025

Probably we don't expose that function from astro:db package. Feel free to send a PR for that. We just need to update this file and add a changeset

export {
sql,
eq,
gt,
gte,
lt,
lte,
ne,
isNull,
isNotNull,
inArray,
notInArray,
exists,
notExists,
between,
notBetween,
like,
notIlike,
not,
asc,
desc,
and,
or,
count,
countDistinct,
avg,
avgDistinct,
sum,
sumDistinct,
max,
min,
} from 'drizzle-orm';

@ematipico ematipico added - P2: nice to have Not breaking anything but nice to have (priority) good first issue Good for newcomers. If you need additional guidance, feel free to post in #dev on Discord pkg: db and removed needs triage Issue needs to be triaged labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- P2: nice to have Not breaking anything but nice to have (priority) good first issue Good for newcomers. If you need additional guidance, feel free to post in #dev on Discord pkg: db
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants