Skip to content

[Introspection] Better introspect success message #1554

@janpio

Description

@janpio

A successful introspect run currently looks like this:

λ npx prisma2@alpha introspect
Introspecting …
Done with introspection in 1.42s
Wrote schema.prisma

We should probably try to make this a bit nicer.

  1. The text itself can be a lot more descriptive ("datamodel was added to your schema.prisma") and for example offer next steps ("Now use prisma2 generate to create a Prisma Client for your database").
  2. We could also output some statistics about the datamodel that was added: x models, y relations, z indexes (Actually only the "model" part might be reasonably simple, but maybe this is a good place to go a bit overbord and have fun)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions