drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
24.41k stars 640 forks source link

[BUG]: Introspect command return [object Object] #3089

Open oRafael07 opened 1 month ago

oRafael07 commented 1 month ago

What version of drizzle-orm are you using?

0.33.0

What version of drizzle-kit are you using?

0.24.2

Describe the Bug

When I go to introspect the database, drizzle-kit returns an indescribable response.

I had already introspected a database in the same project and it worked normally, now I need to introspect another database and it is returning this response

My drizzle.config.ts

import { defineConfig } from 'drizzle-kit'
import { env } from './src/env'

export default defineConfig({
  schema: './.database/schema.ts',
  out: './.migrations',
  dialect: 'mysql',
  dbCredentials: {
    url: env.DATABASE_URL,
  },
})

image

Expected behavior

Being able to introspect the database

Environment & setup

Node: 20.17.0

L-Mario564 commented 2 weeks ago

Can you provide steps to reproduce this bug?