Unique key in PG
monorepo migration folder bundling
How to type connection as conn or transaction?
export type DBConn = PgTransaction<NodePgQueryResultHKT, Record<string, never>, ExtractTablesWithRelations<Record<string, never>>> | NodePgDatabase<Record<string, never>>
export type DBConn = PgTransaction<NodePgQueryResultHKT, Record<string, never>, ExtractTablesWithRelations<Record<string, never>>> | NodePgDatabase<Record<string, never>>
Does 'query' support subqueries with filters?
SQLite Timestamp does not allow a default NULL value
Error: "Missing VercelPostgres connection string" when using insert query
VercelPostgresError: VercelPostgresError - 'missing_connection_string': You did not supply a 'connectionString' and no 'POSTGRES_URL' env var was found....
applying migrations...error: unsafe use of new value "zewnetrzny"
Typesafe where? argument possible?
No config path provided, using default 'drizzle.config.ts'
Define shared columns
drizzle-studio showing duplicate relations

confused with relations
Drizzle: recreate tables with different prefix, without deleting the old ones

getting used in key specification without a key length error when referencing text type column
how to set pragma foreign_keys = off, during migrations?
How to narrow type in select from enum?
Generic Drizzle ActiveRecord pattern (kind of)
One-to-many relation always returning no records for the `many` relation
``ts
// snowflakePk() is a shortcut for generating a snowflake as the primary key with the name id`
export const flows = pgTable("Flow", {
id: snowflakePk(),...Are requests memoized in Nextjs 14?
ERROR [unhandledRejection] connect ECONNREFUSED 127.0.0.1:60589