DT
Drizzle Teampineappaul
Drizzle pg client throwing `scanner_yyerror` on push
Getting the following error upon running
I
drizzle-kit push:pg
to my local postgres.
Drizzle-Kit version 0.20.17
Drizzle-ORM version 0.30.9
using pg
version 8.11.3
Error:
(Also made sure there are no dashes (-
)in any fields nor table names.)
Looking at bin.js
where the error is throwing, I can see t error is thrown when Drizzle-Kit attempts to issue a statement to the given connection's client.I
console.log
this statement to view this statement right before the error is thrown:
...nothing unusual jumps out to me.
Some CREATE statements do work!
What is most strange is that when this runs, drizzle will recognize the metadata from the journal and ask about each of the tables that should be created or replaced.
After running through the whole, set I can notice two of the many tables get created on Drizzle-Studio, while the rest remain uncreated and the console throws the error user g0053 shared.
You can see my package for drizzle db stuff and schema here:
https://github.com/paulmikulskis/product-eng/tree/main/packages/db
Thank you very much for any help!GitHub
product-eng/packages/db at main · paulmikulskis/product-eng
Contribute to paulmikulskis/product-eng development by creating an account on GitHub.
P
pineappaul•13d ago
UPDATE:
This error will throw when trying to use
array()
with an enum.
Here is the table definition:
When .array()
is removed from categories
and ins instead treated as a normal enum, the push works without errorThe official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.2KMembers
View on DiscordWant results from more Discord servers?
More PostsDrizzleError: Rollback is being rethrown unexpectedlyNo matter which error I throw for the rollback - it doesn't work as indented because it bleeds outsiId being required in types when using insert and valuesHello! I' been following the tutorial and I'm having a issue with the following function:
```js
expoFailed push to planetscaleEvery time I try to push my schema to Planetscale, I get the following error:
```
if (unsquashSelect parent rows where child existsI want to use a relational query to select all users and their posts where users have at least one p