using postgres-js for connection
I am trying to setup drizzle with postgres-js package ( as document it be fastest). Referring to this doc:
https://orm.drizzle.team/docs/installation-and-db-connection/postgresql/postgresjs
How do i define schema using postgres-js ?? I tried import for table to my schema file and typescript shows error: Module '"drizzle-orm/postgres-js"' has no exported member ...
How can i import table and other types ?? shoud I use 'drizzle-orm/pg-core' package for schema and 'drizzle-orm/postgres-js' for my index.ts ??
schema.ts :
index .ts :
https://orm.drizzle.team/docs/installation-and-db-connection/postgresql/postgresjs
How do i define schema using postgres-js ?? I tried import for table to my schema file and typescript shows error: Module '"drizzle-orm/postgres-js"' has no exported member ...
How can i import table and other types ?? shoud I use 'drizzle-orm/pg-core' package for schema and 'drizzle-orm/postgres-js' for my index.ts ??
schema.ts :
index .ts :