Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic retrieving of database entities #9752

Open
18 tasks
FStefanni opened this issue Feb 2, 2023 · 2 comments
Open
18 tasks

Automatic retrieving of database entities #9752

FStefanni opened this issue Feb 2, 2023 · 2 comments

Comments

@FStefanni
Copy link

Feature Description

Hi,

I have the need to connect to SQLite, "dump" the data, perform some adjustment, and store the result to Postgres.
The issue is that I do not know and I do not want to create by hand the Entities, since I do not know in advance the the names of the tables, nor their details (e.g. column names and types).

So ti would be very useful to have a feature to say "hey typeorm, connect to that DB and autogenerate your required instances, so than i can inspect them".

I have searched for this feature, but it seems missing.

Regards

The Solution

Databases allow to write specific queries to inspect themselves.
So leveraging this, it is possible to implement the proposed feature.

Considered Alternatives

I searched internet for typeorm "plugins" but without luck.
I could write the inspection queries by hand, but it is not the best.
Not yet checked if typeorm alternatives have this feature.

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

Are you willing to resolve this issue by submitting a Pull Request?

No, I don’t have the time and I’m okay to wait for the community / maintainers to resolve this issue.

@iJhefe
Copy link
Contributor

iJhefe commented Feb 4, 2023

@FStefanni
Copy link
Author

Hi,

thank you for the reply.
It is a pity that the linked project is in maintenance...

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants