You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My suggestion is to only fetch constraints for tables that exist in the tablesFilter array by using an IN clause in the SQL query or by applying the solution above.
The text was updated successfully, but these errors were encountered:
Report hasn't been filed before.
What version of
drizzle-orm
are you using?0.38.3
What version of
drizzle-kit
are you using?0.30.1
Other packages
No response
Describe the Bug
I am trying to pull a specific schema from my database and fetch only one table from that schema.
The process fails while fetching check constraints and returns the following error:
The error occurs when executing the query to fetch check constraints from the database:
The result of this query includes a table that does not exist in the result object, causing a
TypeError
.The error occurs in the following code when attempting to assign the constraint name:
I fixed this issue by checking if the
tableName
exists using atablesFilter
function before continuing the loop iteration:My suggestion is to only fetch constraints for tables that exist in the
tablesFilter
array by using an IN clause in the SQL query or by applying the solution above.The text was updated successfully, but these errors were encountered: