drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: A method in order to get relations about a table

Open
#4,735 1 comment 4 reactions 0 assignees View on GitHub
enhancement rqb
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Feature hasn't been suggested before.

- [x] I have verified this feature I'm about to request hasn't been suggested before.

### Describe the enhancement you want to request

Hello,

It would be very helpful to have a method to retrieve the relations (associations/relationships) of a given table. This could be useful for introspection or for building tools that need to understand how tables are connected within the schema.

Is it possible to provide a way to get all relations (such as foreign keys, belongsTo, hasMany, etc.) for a specific table?

Maybe some internal method are already implemented but not documented ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.