on every `migrate()`: schema "drizzle" already exists, skipping
Strugling to use composite key in schema
Get database informations inside 'use client' component
Module not found: Can't resolve 'net'
...Running migrate() in Sveltekit project
"migrate": "ts-node src/lib/server/database/migrate.ts"
but I get errors here (ERR_UNKNOWN_FILE_EXTENSION
). Any ideas?Reference to auth.users?
Are postgres CONSTRAINTS supported when creating a table schema?
name
, dataType
, columnType
.
In contrast the actual Postgres CREATE TABLE syntax is very rich:
https://www.postgresql.org/docs/current/sql-createtable.html...Optional/Default value for Relational `Extras`
import { PostgresError } from "postgres" - build error?
PostgresError
from postgres
It says The requested module 'postgres' does not provide an export named 'PostgresError'
during build but I am getting no typescript error on my code.
I have code like this
```ts...
How to do this query in one step instead of two?
How to query from a many to many relationship?
Correct way to deal with MySqlRawQueryResult
Unknown option schemaFilter for drizzle-kit introspect
How are you all seeding your database?
Why it's not possible to use `where` here?
where
is not possible in this case.
Seems like I don't quite understand how to describe BelongsTo
with Drizzle and that might be a problem.
Can you guys help? Thanks...
optional parent child relationship on same table
Converting drizzle custom type to Postgres composite type fails for arrays
accountNumber, beneficiaryName, bankId
. I have overridden the toDriver
implementation to try and handle insertion of this custom type as follows:
```
type BeneficiaryAccountSqlValue = [
account_number: string,...Cannot drop primary key
InferSelectModel vs. InferInsertModel
parameterized insert and update