You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The docs mention that astrodb uses Drizzle for querieing your data. However, only the .select() API is documented and usable from astro/db, which is the "query-builder API". The Drizzle website mentions the more powerful .query api.
Could we also expose the .query API in astrodb?
The .query API seems to be also known as "relational queries".
Background & Motivation
I've asked around in the Astro Discord and @delucis let me know that originally the Drizzle .query API was experimental. Since then, however, it is no longer experimental and seems to be the preferred way to query (since it is the first page in the Drizzle docs).
Note that the .query API allows for much easier querying, since you don't have to de-duplicate the result of a query with custom .reduce functions. It makes Drizzle an actual ORM, rather than a advanced query builder.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
The docs mention that astrodb uses Drizzle for querieing your data. However, only the
.select()
API is documented and usable fromastro/db
, which is the "query-builder API". The Drizzle website mentions the more powerful.query
api.Could we also expose the
.query
API in astrodb?The
.query
API seems to be also known as "relational queries".Background & Motivation
I've asked around in the Astro Discord and @delucis let me know that originally the Drizzle
.query
API was experimental. Since then, however, it is no longer experimental and seems to be the preferred way to query (since it is the first page in the Drizzle docs).Note that the
.query
API allows for much easier querying, since you don't have to de-duplicate the result of a query with custom.reduce
functions. It makes Drizzle an actual ORM, rather than a advanced query builder.Goals
Be able to use the full
.query
api.Example
Beta Was this translation helpful? Give feedback.
All reactions