-
Notifications
You must be signed in to change notification settings - Fork 321
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
如何获取约束 #37
Comments
经测试,发现只是debug报错,实际是可以用的, enum Attribute {
PRIMARY_KEY,
CANDIDATE_KEY,
FOREIGN_KEY,
INDEX,
AUTO_GENERATED,
COMPUTED,
VERSION
} |
因为$tool.debug是通过反射实现的,反射某些特殊对象时可能会发生异常。 |
也许你需要这个工具 |
嗯嗯,多谢大佬的回复。已经基于easycode编写了适合团队内部使用的代码生成器,很方便。非常感谢。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
根据 DasTable 源码找到 getColumnAttrs 方法
但是实际在用的时候,报错
$!tool.debug($tableInfo.obj.getColumnAttrs($tableInfo.fullColumn.get(1).obj))
The text was updated successfully, but these errors were encountered: