Output drizzle schema to json or similar
db.query not updating
findMany
and findFirst
functions. These are my collectionsTable
relations:
```export const collectionsRelations = relations(collectionsTable, ({ one }) => ({
author: one(usersTable, {
fields: [collectionsTable.authorID],
references: [usersTable.id],...Handling errors in Expo
unionAll in pgView
Time type query inconsistencies
Do I need to manually add indexes on foreign key columns when working with PostgreSQL?
trying to use $count withing query relational api
PostgresError: column projects.project_id does not exist
```ts
const projectsInQueueWithDrizzle = await db.query.projects.findMany({
with: {
matches: true,...Cloudflare d1 on cloudflare pages functions
Complex seeding tasks
week_number_systems
which holds things like ISO 8601
, US Sunday
etc. Then, we run a task to populate another table called week_definitions
. The week definitions table has each row represent a week, and a week number system can have many week definitions (one to many). This is so that our app's schedule is dynamic, and can support any type of week.
The week definition has a starts_at
and ends_at
, as well as a year
and week
(because 1 day, can have have a different week number or year as per ISO 8601 or US Sunday)....Is it possible to seed nested referenced entities?
refine
you can create references from one table to another:
```ts...Field type error on insert

schema in multiple files breaks types
undefined
on tables.
if I place everything in a single schema again, it's working fine. I haven't changed any of the exports either....
when running postgres in docker, drizzle cannot connect to it, says database doesnt exist
./start-database.sh
the env updated itself but it says that databse does not exist :/ i checked in docker desktop and the container is runningrecommendation on changing data type of column?
error: column "time_waiting_for_builds" cannot be cast automatically to type double precision
i'm wondering how to go around these kind of things. would editing the resulting migration sql be an anti pattern? is there a recommended approach to do these things?...TypeError unless column is notNull
Update returning with some relation
reference fails with Cannot read properties of undefined (reading 'id')
Drizzle not creating table
Best way to insert thousands of records.
COPY
command....