Skip to content

Ignoring table during introspection #4510

@devalnor

Description

@devalnor

Problem

There is no option to ignore table during introspection (prisma introspect)
Actually all table are in the schema.

For example _migrations tables don't have to be in the schema.

Suggested solution

I suggest to add a cli argument --ignoreTablePattern whose names match a regexp pattern.
For example, tables whose names begin with an underscore.

prisma introspect --ignoreTablePattern '^_'

Alternatives

If too complexe. The simplest solution can also be --ignoreUnderscoreTable but less custom

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions