West side ⁉
West side ⁉
Explore posts from servers
DTDrizzle Team
Created by Liltripple_reid on 9/8/2023 in #help
many to many relation problems
I love the internet I just had to declare relations (i.e. using the relations function https://orm.drizzle.team/docs/rqb#declaring-relations and import it in schema)
9 replies
DTDrizzle Team
Created by Liltripple_reid on 9/8/2023 in #help
many to many relation problems
what did you do? just make sure to import them all?
9 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
I basically had to add ?search_path=public to the DATABASE_URL
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
discord is truly amazing, being able to search messages and find what others have tried is really helpful
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
22 replies
DTDrizzle Team
Created by Eko on 5/23/2023 in #help
Select with relation
YES THATS WHAT YOU MEAN THANK YOU DUDE HOLY, I SPENT FUCKING HOURS TRYING TO FIX
21 replies
DTDrizzle Team
Created by Eko on 5/23/2023 in #help
Select with relation
so you're saying drizzle uses ?search_path=public?
21 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
No description
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
kids, don't forget to run your migrations!
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
No description
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
bun install pg and you're (partially) good to go 👍
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
No description
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
Update: still complaining with node-postgres, although differently
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
I won't just give up yet I'll give it a retry once I finish building this damn ting
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
I don't know why it's bitching about dbName being a string evne though I never set it but switching to node-postgres solved it for me
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
Diagnostics:
1. Type 'PostgresJsDatabase<typeof import("/mnt/projects/coding/js/scholix/src/server/db/schema")>' is not assignable to type 'PostgresJsDatabase'.
The types of '_.schema' are incompatible between these types.
Type 'ExtractTablesWithRelations<typeof import("/mnt/projects/coding/js/scholix/src/server/db/schema")> | undefined' is not assignable to type 'ExtractTablesWithRelations<Record<string, never>> | undefined'.
Type 'ExtractTablesWithRelations<typeof import("/mnt/projects/coding/js/scholix/src/server/db/schema")>' is not assignable to type 'ExtractTablesWithRelations<Record<string, never>>'.
Diagnostics:
1. Type 'PostgresJsDatabase<typeof import("/mnt/projects/coding/js/scholix/src/server/db/schema")>' is not assignable to type 'PostgresJsDatabase'.
The types of '_.schema' are incompatible between these types.
Type 'ExtractTablesWithRelations<typeof import("/mnt/projects/coding/js/scholix/src/server/db/schema")> | undefined' is not assignable to type 'ExtractTablesWithRelations<Record<string, never>> | undefined'.
Type 'ExtractTablesWithRelations<typeof import("/mnt/projects/coding/js/scholix/src/server/db/schema")>' is not assignable to type 'ExtractTablesWithRelations<Record<string, never>>'.
Property 'user' is incompatible with index signature.
Type '{ tsName: "user"; dbName: "user"; columns: { id: PgColumn<{ name: "id"; tableName: "user"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; enumValues: undefined; baseColumn: never; }, {}, {}>; username: PgColumn<...>; password: PgColumn<...>; createdAt:...' is not assignable to type '{ tsName: string; dbName: never; columns: never; relations: Record<string, Relation<string>>; primaryKey: AnyColumn[]; }'.
Types of property 'dbName' are incompatible.
Type 'string' is not assignable to type 'never'. [2322]
Property 'user' is incompatible with index signature.
Type '{ tsName: "user"; dbName: "user"; columns: { id: PgColumn<{ name: "id"; tableName: "user"; dataType: "number"; columnType: "PgSerial"; data: number; driverParam: number; notNull: true; hasDefault: true; enumValues: undefined; baseColumn: never; }, {}, {}>; username: PgColumn<...>; password: PgColumn<...>; createdAt:...' is not assignable to type '{ tsName: string; dbName: never; columns: never; relations: Record<string, Relation<string>>; primaryKey: AnyColumn[]; }'.
Types of property 'dbName' are incompatible.
Type 'string' is not assignable to type 'never'. [2322]
Second block seems to be where the issue be (the 2 blocks are 1 diagnostic)
22 replies
DTDrizzle Team
Created by raaden on 9/4/2023 in #help
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
Having this issue rn, will try and be back
22 replies
DTDrizzle Team
Created by West side ⁉ on 9/12/2023 in #help
.onUpdateNow() for postgresql?
Will do, thanks Noahh!
4 replies