Closed mees-van-wel closed 2 weeks ago
Drizzle exposes getTableName
and getTableConfig
functions which can be used to identify tables:
const { name, schema } = getTableConfig(table);
const identifier = `${schema}.${name}`;
This should cover the use cases you mentioned. I'll be closing this issue; however, if you have a use case where none of the previously mentioned functions work, let me know.
Describe want to want
Drizzle does not introduce data classes/model classes, instead just returning/working with simple native JS data structures (plain objects, arrays, etc.).
This is a problem when the identity of data is needed. There are lots of cases where identity is needed. Here are two cases I am currently working with:
Suggested solution
Ideally something as simple as this: