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

Source code of server web pages (JS,CSS) should also be included #93

Open
southwolf opened this issue Dec 7, 2024 · 3 comments
Open

Comments

@southwolf
Copy link

Is your feature request related to a problem? Please describe.

I am trying to add a new feature for supporting multiple schemas in PostgreSQL, and I need to add a new toggle in the web page. But the JS/CSS files are now minimized so I cannot edit them.

我想要添加一个支持 PostgreSQL 多 schema 的功能, 需要在前端页面增加一个开关, 但现在前端 JS/CSS 已经是压缩过的, 没法直接改.

Describe the solution you'd like

Adding original JS/CSS source code into code repository.

将未压缩过的原始 JS/CSS 添加到代码库

Describe alternatives you've considered

N/A.

无.

Additional context

N/A.

无.

@zhufuyi
Copy link
Collaborator

zhufuyi commented Dec 8, 2024

默认是列出数据库下所有schema的表,可以在dsn指定多个schema表, 例如指定scheme为job1job2下的表,dsn=root:123456@(192.168.3.37:5432)/account?search_path=job1&search_path=job2

@southwolf
Copy link
Author

southwolf commented Dec 8, 2024

默认是列出数据库下所有schema的表,可以在dsn指定多个schema表, 例如指定scheme为job1job2下的表,dsn=root:123456@(192.168.3.37:5432)/account?search_path=job1&search_path=job2

handler.gogetPostgresqlTables 只获取表名, 一旦不同 schema 下有重名的表就没办法区分了. 我正在试着把 schema 加到表名里. 但为了与旧版本兼容, 最好是放个开关, 用户可以选择是否带上 schema 名.
image

@zhufuyi
Copy link
Collaborator

zhufuyi commented Dec 8, 2024

生成的代码文件名时需要使用到表名,如果不同schema下有相同的表名,sponge不支持区分,所以要求表名是唯一的。

暂时解决办法:

  1. 修改表名。
  2. 不修改表名情况下,指定schema生成的代码后,然后手动添加schema目录区分。

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