Mario564
Mario564
Explore posts from servers
DTDrizzle Team
Created by Kiwibe on 10/11/2024 in #help
How to `as` a table name
You can try using the alias function
4 replies
DTDrizzle Team
Created by entropy on 10/11/2024 in #help
Drizzle kit push and migrate don't match typescript schema
It do be like that. Glad you got it solved though
9 replies
DTDrizzle Team
Created by Mellow on 10/10/2024 in #help
PgCore: QueryBuilder Issue
Could you provide more info on how to reproduce this bug? An example query that you're having this issue with would be nice
3 replies
DTDrizzle Team
Created by entropy on 10/11/2024 in #help
Drizzle kit push and migrate don't match typescript schema
Or are you talking about the FK not being generated?
9 replies
DTDrizzle Team
Created by entropy on 10/11/2024 in #help
Drizzle kit push and migrate don't match typescript schema
(Also, hi entro!)
9 replies
DTDrizzle Team
Created by entropy on 10/11/2024 in #help
Drizzle kit push and migrate don't match typescript schema
What exactly is wrong? The column names? I see that certain keys don't match the assigned alias (like folderName as key but file_name as alias)
9 replies
DTDrizzle Team
Created by test_1 on 9/23/2024 in #help
Single database for multiple unrelated projects concern
I don't know if the team has plans to make the filtered be untouched rather than dropped, but it might be a good idea to open a feature request on Github or contacting one of the core Drizzle Team members to suggest this enhancement
3 replies
DTDrizzle Team
Created by test_1 on 9/23/2024 in #help
Single database for multiple unrelated projects concern
Pretty sure this behavior is normal, although you aren't the first one to be confused by this feature's behavior
3 replies
DTDrizzle Team
Created by Slime on 9/13/2024 in #help
invalid input either "url" or "host
Once you delete your node modules, you reinstall packages by running the install command of whatever package manager you're using
14 replies
DTDrizzle Team
Created by alexb on 9/18/2024 in #help
How to type a generic selection function
Alright, glad to have helped!
16 replies
DTDrizzle Team
Created by alexb on 9/18/2024 in #help
How to type a generic selection function
The select types are also very complex so that certainly doesn't help
16 replies
DTDrizzle Team
Created by alexb on 9/18/2024 in #help
How to type a generic selection function
There probably is but it's not documented anywhere at the moment
16 replies
DTDrizzle Team
Created by alexb on 9/18/2024 in #help
How to type a generic selection function
async function select<T extends SelectedFields>(fields: T) {
const query = db.select(fields).from(users);
return await query.where(eq(users.id, 1)) as Awaited<typeof query>;
}
async function select<T extends SelectedFields>(fields: T) {
const query = db.select(fields).from(users);
return await query.where(eq(users.id, 1)) as Awaited<typeof query>;
}
16 replies
DTDrizzle Team
Created by alexb on 9/18/2024 in #help
How to type a generic selection function
Couldn't find a clean solution to this problem, but I did come up with a workaround
16 replies
DTDrizzle Team
Created by alexb on 9/18/2024 in #help
How to type a generic selection function
Are you still explicitly defining the return type for the function?
16 replies
DTDrizzle Team
Created by alexb on 9/18/2024 in #help
How to type a generic selection function
That should work
16 replies
DTDrizzle Team
Created by lordbinbash on 9/12/2024 in #help
Is it possible to use .map and batch?
@lordbinbash What exactly are those "TS Errors"?
2 replies
DTDrizzle Team
Created by Slime on 9/13/2024 in #help
invalid input either "url" or "host
I suggest updating Drizzle Kit to latest and define the config with defineConfig function
14 replies
DTDrizzle Team
Created by pratyush on 9/14/2024 in #help
old/stale data
Drizzle doesn't cache any query results, so there might an issue with the API you're designing
3 replies
DTDrizzle Team
Created by Torbjørn on 9/15/2024 in #help
How do I use the with statement when inserting with select?
Right now, Drizzle doesn't support insert into ... select syntax, but there is a PR for it on the Github repo
2 replies