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

关于自动建表的功能 #261

Open
junwense opened this issue Sep 4, 2024 · 4 comments
Open

关于自动建表的功能 #261

junwense opened this issue Sep 4, 2024 · 4 comments

Comments

@junwense
Copy link

junwense commented Sep 4, 2024

temp 如图,我看了项目里自动jian建立表的功能,是通过此方法在查找tableroute的时候进行新增表,是否可以在在此新增一个hook函数,并且传入TableAvailable这个对象,因为目前流程在此方法里是拿不到数据源的信息的,没有dsn的信息,会导致表会建立在默认dsn上,而且我看默认执行sql的 easyQuery.sqlExecute(sql); 用的context还是默认的,这样会不会出问题
@junwense
Copy link
Author

junwense commented Sep 4, 2024

必要的话我也可以提供一个pr修复此问题

@xuejmnet
Copy link
Collaborator

xuejmnet commented Sep 4, 2024

@junwense 非常欢迎

@xuejmnet
Copy link
Collaborator

xuejmnet commented Sep 4, 2024

原本的想法是用户自行创建表框架只做路由,但是实际情况是用户希望框架可以帮忙维护表的创建和路由 0.0

@junwense
Copy link
Author

junwense commented Sep 4, 2024

原本的想法是用户自行创建表框架只做路由,但是实际情况是用户希望框架可以帮忙维护表的创建和路由 0.0

事实上确实是不用建表,因为这些大部分都是dba做的事情,这个功能挺鸡肋的,我也是看了测试案例,跑了下,才发现这个- -

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