Is it possible to tell drizzle which schema to use on the database?
schema
s but I want only one of them.
Currently drizzle is including only the public schema in the introspect which ends up not being what I want....Has anyone done a custom `bytea` column type for postgres?
bytea
column.
There was an open issue for it in the github, so I was wondering if someone has already implemented bytea
so that I can reuse it π...What does this section of the docs mean?
name
and on()
param. What does this mean? Would the following not work with drizzle kit then?
```ts
export const users = mysqlTable("users", {
clerkID: varchar("clerk_id", {length: 255}).notNull().primaryKey(),...Schema not added to FK constraints
Drizzle npm package not working
Do we have to add enums to the migration manually?
Getting Started With Drizzle And Had A Few Questions
@unique
)?
...What's the overhead (if any) of using the new relational api?
Multi-File Schemas
UUID insted of ID
Dynamic where query
where
query based on user input?
In Knex.js, we could do something like this:
```knex('questions')...Planetscale migration error
Drizzle-kit can't load env file via t3-env
SyntaxError: Cannot use import statement outside a module
in env.mjs
, which I find odd since it is explicitly marked as an ES module. Other than this, t3-env works fine with drizzle-orm.
Full Error:
```js
Reading config file 'F:\Projects\PROJECTNAME\drizzle.config.ts'...I need some guidance on joins
Best way to run safe raw queries when only having access to the table name?
db
Drizzle instance and the table name, what's the best way to perform a SELECT * FROM table
given only those two parameters? The sql
operator works by passing not the table name, but the schema (which I dont have access to) so I tried sql.raw
but it doesn't escape variables. I could escape them manually, but maybe there's an easier/better way.InferModel including relations?
How to declare 1-to-0:1 relation between tables?
one
seems to be for 1-to-1 relations.
Thanks!...How to suppress 'relation "x" already exists, skipping' logs during migration?
many to many doc example
Custom Function to Transform Subqueries is missing types