Drizzle/better-auth + Local PSQL
npx create-next-app@latest
(app router no src-folder) and go then install drizzle following the docs and run the commands that are shown in the docs/guide. I create my .env
file and setup my DATABASE_URL="postgres://postgres:mypassword@localhost:5432/postgres"
and move on to creating my db
directory and place the index.ts
file inside of it which holds this code. ...turso

is there equivalent to drizzle-graphql for rest api?
Trying to pass transactions or db
Prisma to DrizzleORM Issue
inArray not working as expected
'${tag}'
).join(', ');
where.push(sql${tagData.tags} @> ARRAY[${sql.raw(tagsArray)}]::text[]
);
...applying migrations... PostgresError: column "x" cannot be cast automatically to type x
type definition for tables in customer function
New critical Build error drizzle 0.35.0 with Cloudflare
Question about Live Queries and when they update
useLiveQuery
with a large relational query that loads a bunch of nested stuff, if any of that nested stuff is updated, I won't get notified. Only if the top level table changes.
I'd love to know a little bit more detail about how this all works so that I can better understand in what situations the change listener fires. Is this documented anywhere?...[Solved] Aliasing a column
[solved] SQLite in expo with useMigrations is failing without any error (just rollback)
``
LOG Query: CREATE INDEX
person_index ON
authors (
url,
person_id`);
LOG Query:...Error while pushing/pulling from pg DB (supabase)
[solved] useLiveQuery seems to always run the query twice
useLiveQuery
causes the query to happen twice in quick succession. Why is this?NULLS LAST in orderBy
[SOLVED] invalid reference to FROM-clause entry for table
Manual Migrations
npx drizzle-kit migrate
...Help with 'in' queries
Can't create relation between two tables
clients
table and a sheets
tables where a client can have multiple sheets linked to their ID, but I keep getting complaints about incompatible foreign keys due to my bad schema
Fixed; for anyone wondering, instead of using references(() => clients.id)
very shallowly you have to create proper relations like such:
```ts...Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './connect' is not defined by "exports"