DT
Drizzle TeamSylvain
Using BIN_TO_UUID / UUID_TO_BIN
I’m trying to understand the best way to use
BIN_TO_UUID
and UUID_TO_BIN
(MySQL).
The below is working fine...
...but I was wondering if there was a better approach, so that the UUID<>BIN
conversion would automatically apply - without having to manually specify it on each query?
Here is an example of what I’m looking for (fromSQL
and toSQL
are made up functions):
Is there any way to do something similar right now?S
Sylvain•360d ago
Nevermind... I found a better way to achieve what I was looking for by using custom types with the
binary-uuid
package (https://www.npmjs.com/package/binary-uuid):
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.3KMembers
View on DiscordWant results from more Discord servers?
More Postsdrizzle-kit drop config file does not existI have a `/foo/drizzle.config.ts` file as suggested in the docs (https://orm.drizzle.team/kit-docs/Related object is not typed correctlyI have the following schema
```
export const menus = pgTable('menus', {
id: uuid('id').primaryKey(Custom vector type with pgvectorI'm trying to use the `pgvector` extension with a custom type but am running into an issue with the Missing 'with' clause additional operators (where, limit, offset, etc)Have been digging into the docs and the latest update. ❣️
In the docs (https://orm.drizzle.team/d