Primary and Replica Query Load Balancing
Is there a valid use case for being able to specify a relation name that points to a "wrong" table?
client does not exist in type "NeonClient"

composite primary key migration fail
drizzle-kit --custom --name=recipient-primary-key
to generate a custom migration file. In that file i have the following sql
```sql
-- Step 1: Rename the old recipients table
ALTER TABLE recipients RENAME TO recipients_old;...Dynamic select() query builder
.$dynamic()
operator, we're able to double up on .where()
and .limit()
additions without erroring. However, we can't add on to the original select()
query. Is there a way to do this to add new fields to an existing query being built?Updating a date with the node-postgres adapter
``ts
await db
.update(schema.order)
.set({ completedDate: new Date() }) // same error with sql
now()`...Disambiguating relations
How does drizzle calculate SQL execution time? I am using the mysql2 library
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...