outsideurimagination
outsideurimagination
Explore posts from servers
DTDrizzle Team
Created by jakeleventhal on 1/10/2024 in #help
Guarantee on returning order
Trying to figure out how I can insert bulk data into a parent and child table when I'm letting the DB create the ids. I thought I could first insert into one with returning and then use the ids returned from that in the second to reference it, but it seems to not match up correctly
4 replies
DTDrizzle Team
Created by jakeleventhal on 1/10/2024 in #help
Guarantee on returning order
For sqlite it seems to not guarantee this "The output order for the RETURNING rows is arbitrary and is not necessarily related to the order in which the rows were processed internally." https://www.sqlite.org/lang_returning.html
4 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
had to use wrangler to deploy instead of pages integrated method
27 replies
CDCloudflare Developers
Created by Ryan Djurovich on 4/8/2024 in #workers-help
Vitest type error in Github Actions and eslint
I'm getting the same locally. "@cloudflare/vitest-pool-workers" is in the tsconfig types and it declares this package https://github.com/cloudflare/workers-sdk/blob/main/packages/vitest-pool-workers/types/cloudflare-test.d.ts so I'm unsure what's going on. Using bun for reference
2 replies
CDCloudflare Developers
Created by Acro on 12/27/2023 in #pages-help
Cloudflare Pages + TurboRepo + PNPM
I'm encountering similar issues. If I build from the root, cloudflare pages doesn't find my project's wrangler.toml. So we have to set the root as apps/app. Now I have issues with it not detecting the root package.json settings like packageManager or its dependencies. Ok, I can mostly overcome that by explicitly declaring them in the app's package.json (can probably use https://github.com/microsoft/package-inherit to make it cleaner). Now I have an issue where it's not reading the env vars even though they are clearly there in the build (my build command migrates the db, which is trying to connect to the local version of the URL "http://127.0.0.1:8080/v2/pipeline" even though the env var is logged before. I don't think this will be the only thing I encounter. Anyone gotten a good setup with pages + turborepo + non-npm package manager?
27 replies