-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
数据库模板列获取其他列变量的优化 #11237
Comments
自动更新模板中的变量名比较危险,因为字段名是可以重复的,这种情况下跟随修改模板内容可能会破坏原有的功能。 关于模板的易用性估计还是得做编辑器 #11080 但是这个工作量太大,短期内我们搞不了,估计要靠社区开发者贡献了。 我关闭这个 issue 了,如果还有需要讨论的地方欢迎随时跟帖,谢谢。 |
这个 issue 不会修改模板内的变量名 |
@88250 第二点当然是第一点的补充啊 |
|
我就是想根据列的唯一 id 来获取值,而不只是靠列名。列名的限制很多 |
哦,我之前理解有误,等晚点再看看,谢谢。
…---原始邮件---
发件人: ***@***.***>
发送时间: 2024年5月4日(周六) 中午12:13
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [siyuan-note/siyuan] 数据库模板列获取其他列变量的优化 (Issue #11237)
@88250
现在的模板语法只是根据字段名来获取变量,重名的话就更需要交互式的选择列了
这个issue不改变模板内容,只是改变获取变量的方式,变量名也不会改,我觉得体验只会更好,而不会有什么风险。毕竟之前按照列名来获取,那我修改列名后模板列一样也会报错。如果觉得模板列添加到变量的列名自动更改有风险,也可以先不要这个功能。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
嗯,等考虑下 ID 是不是也能作为模板变量。
…---原始邮件---
发件人: "Jeffrey ***@***.***>
发送时间: 2024年5月4日(周六) 中午12:22
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [siyuan-note/siyuan] 数据库模板列获取其他列变量的优化 (Issue #11237)
我就是想根据列的唯一 id 来获取值,而不只是靠列名。列名的限制很多
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In what scenarios do you need this feature?
目前数据库模板列获取其他列的变量需要在用户在模板里指定某一个列,设置其变量名
如果想把这个模板用于多个数据库,鉴于要获取的列名不一定一致,就需要自己手动修改,不是那么友好。而且这个列名也有可能在使用过程中被改动,到时候还需要修改模板中使用的列名
Describe the optimal solution
建议
好处
Describe the candidate solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: