BaNuni
BaNuni
DTDrizzle Team
Created by BaNuni on 8/19/2024 in #help
Using generics with Table type
Found my answer! ended up doing:
function insertWithLogger<TableType extends AnyPgTable, DataType extends InferInsertModel<TableType>>(data: DataType[], table: TableType)
function insertWithLogger<TableType extends AnyPgTable, DataType extends InferInsertModel<TableType>>(data: DataType[], table: TableType)
(can be marked as an answer, I'm not sure how to...)
2 replies
DTDrizzle Team
Created by Blume on 10/15/2023 in #help
Delete from join
any update on this?
4 replies
DTDrizzle Team
Created by BaNuni on 12/27/2023 in #help
"Duplicate Index" - but no dupliacte index...
drop all indexes, recreate them... =[
10 replies
DTDrizzle Team
Created by BaNuni on 12/27/2023 in #help
"Duplicate Index" - but no dupliacte index...
cool! thanks for giving an answer 🙂 I actually had to workaround this problem, but it's good to know that a valid solution is available
10 replies
DTDrizzle Team
Created by BaNuni on 12/27/2023 in #help
"Duplicate Index" - but no dupliacte index...
this was coming out when I was trying to generate migrations... Anyway, I think it had to do with some weird state of files on my machine
10 replies
DTDrizzle Team
Created by jonpage on 12/1/2023 in #help
Update From
me3
5 replies
DTDrizzle Team
Created by BaNuni on 11/12/2023 in #help
Upsert Multiple using EXCLUDED
yeah that's what I'll be doing, but I thought there might me a built-in solution for that
4 replies
DTDrizzle Team
Created by BaNuni on 10/31/2023 in #help
Using Query Syntax to filter by FK's field
I'll go back to select
11 replies
DTDrizzle Team
Created by BaNuni on 10/31/2023 in #help
Using Query Syntax to filter by FK's field
Cool, thanks for your help! regarding revrsing the query - my actual case is more complex than that, and requires filters on both tables (also, it actually nests another table in it 🙂 ) I wish the system I'm actually working on were about pets and dogs
11 replies
DTDrizzle Team
Created by BaNuni on 10/31/2023 in #help
Using Query Syntax to filter by FK's field
also, i'm curious, why is this not allowed?
11 replies
DTDrizzle Team
Created by BaNuni on 10/31/2023 in #help
Using Query Syntax to filter by FK's field
thanks for your answer - does this mean I have to use the sql-like select syntax?
11 replies
DTDrizzle Team
Created by BaNuni on 9/5/2023 in #help
Utilizing Many-to-Many relationships
Maybe we should add a 'doubleWith' operator or 'withConjunction' to make this more readable.
4 replies
DTDrizzle Team
Created by BaNuni on 9/5/2023 in #help
Utilizing Many-to-Many relationships
Amazing - this is what I was looking for.
4 replies