Closed ahkhanjani closed 2 months ago
Feel free to PR - I felt like it was a good change so you dont export everything including all the table and column definitions.
But the sql function is definetely useful
You can export those from "drizzle-orm/sql" I believe. We should do a PR for it. Are there other implicit helpers that exist elsewhere in drizzle that you are missing?
I inspected the source code. Here's how things are exported:
./sql
: Contains /expressions
, /functions
subdirectories and a sql.js
and exports all three.
./expressions
: Re-exports /sql/expressions
.
functions
contains aggregation functions. So Everything in it is necessary. sql.js
seems to have some unnecessary objects in it.
I'll make a PR for the most minimal export possible.
Provide environment information
-
Describe the bug
There's been a change to the
db
package recently that exports*
fromdrizzle-orm/expressions
instead ofdrizzle-orm
. This doesn't include some of the necessary functions fromdrizzle-orm/sql
.Link to reproduction
-
To reproduce
-
Additional information
No response