Use Drizzle ORM (ver 0.29) ๐ฆ and PostgresJS ๐ step by step with Bun
Warning, this blog is written when using drizzle-orm@^0.29.5 version.
Installation
bun add drizzle-orm@^0.29.5 postgres
bun add -D drizzle-kit@^0.20.18
Define the schema
cd src
mkdir db
cd db
mkdir schema
cd schema
touch products.ts
products.ts:
im...
loclv.hashnode.dev4 min read