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

Typeorm的使用疑问 #227

Open
rojer95 opened this issue Feb 14, 2025 · 3 comments
Open

Typeorm的使用疑问 #227

rojer95 opened this issue Feb 14, 2025 · 3 comments

Comments

@rojer95
Copy link

rojer95 commented Feb 14, 2025

关于Typeorm的配置目前看好像只能在yml中配置,
但是像namingStrategy: new SnakeNamingStrategy()这种配置貌似不知道咋办,是否有其他配置方式?

Image

@muxiangqiu
Copy link
Member

目前没有提供配置,后面会提供。

目前可以通过 rebind DataSourceManager 这个类的实现可以做到。

@rojer95
Copy link
Author

rojer95 commented Feb 19, 2025

好的 谢谢

@muxiangqiu
Copy link
Member

Image

覆盖这个 create 方法

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

No branches or pull requests

2 participants