McLean 25
McLean 25
Explore posts from servers
DTDrizzle Team
Created by nelsonprsousa on 10/25/2023 in #help
How to run migration script?
This can be really annoying with ESM modules though. Really which there was a CLI command to run them
8 replies
DTDrizzle Team
Created by McLean 25 on 10/12/2023 in #help
AWS Data API RDSDataClient Args in Production
I'm assuming the correct way to do this is to give my lambda's access to the DataAPI
3 replies
DTDrizzle Team
Created by shaw93 on 7/30/2023 in #help
groupby multiple things
I think .groupBy(users.user_id, exercises.id) should work
2 replies
DTDrizzle Team
Created by McLean 25 on 6/7/2023 in #help
Sqlite insert returning typing help
Oh that's it, thanks!
5 replies
DTDrizzle Team
Created by McLean 25 on 6/7/2023 in #help
Sqlite insert returning typing help
These are the properties I'm seeing:
5 replies
DTDrizzle Team
Created by joostschuur on 5/6/2023 in #help
Using Vercel Postgres and developing locally
@joostschuur Curious how you invoked your migrations from a Vercel project?
65 replies
DTDrizzle Team
Created by McLean 25 on 5/3/2023 in #help
Select wildcard
Nice, thanks!
4 replies
DTDrizzle Team
Created by McLean 25 on 5/3/2023 in #help
Select wildcard
4 replies
DTDrizzle Team
Created by McLean 25 on 4/5/2023 in #help
Return first or throw
OK, finally found what I was looking for here: https://discord.com/channels/1043890932593987624/1085317796654764092
4 replies
DTDrizzle Team
Created by McLean 25 on 4/5/2023 in #help
Return first or throw
The idea here being, that firstItems type will be User, and not User[]
4 replies
DTDrizzle Team
Created by McLean 25 on 4/5/2023 in #help
Can't find meta/_journal.json file when running migrate
Figured it out using relative path from root:
export const migrateToLatest = async () => {
await migrate(DB, { migrationsFolder: "services/core/db/migrations" });
};
export const migrateToLatest = async () => {
await migrate(DB, { migrationsFolder: "services/core/db/migrations" });
};
3 replies
DTDrizzle Team
Created by McLean 25 on 4/5/2023 in #help
Can't find meta/_journal.json file when running migrate
Error stack:
| Invoked services/functions/db/migrateToLatest.handler
| +145ms [INFO] (alex.MigrateToLatest.migrateToLatest) About to run migrations...
| +161ms [ERROR] (alex.MigrateToLatest.migrateToLatest) Got error trying to migrate to latest
| +161ms {
| +161ms error: Error: Can't find meta/_journal.json file
...
| Invoked services/functions/db/migrateToLatest.handler
| +145ms [INFO] (alex.MigrateToLatest.migrateToLatest) About to run migrations...
| +161ms [ERROR] (alex.MigrateToLatest.migrateToLatest) Got error trying to migrate to latest
| +161ms {
| +161ms error: Error: Can't find meta/_journal.json file
...
3 replies