Closed
Description
Feature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
drizzle-orm: v0.38.2
With the amazing introduction of views, my team and I have started using them heavily.
I find my self doing this:
try {
await db.refreshMaterializedView(aMaterializedView);
} catch (err: unknown) {
const error = new Error("Could not refresh materialized view", { cause: err });
console.warn(error)
}
Nonetheless, I'd like the error message to be more descriptive, ie include the view name.
I tried with getTableName
but the type $inferInsert
is naturally missing in the materialized view.
Is this something easy to implement?
I'm a heavy fan and user of drizzle but have never contributed to the code.
If someone could point me exactly to where I should write this function, I could try to follow from context.