如何允许用户提交 q 查询并将其解释为字符串?
我希望允许用户编写真正的 q 查询,例如
select from table where date=.zd
是否可以使用类似
E)select from table where date=.zd
然后使用该 E)
的输入来解析查询并对其进行处理?
I want to allow users to write real q queries like
select from table where date=.z.d
Is it possible to use something like
E)select from table where date=.z.d
and then use the input to that E)
to parse the query and do stuff with it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您创建一个名为
.Ee
的函数,则传递给它的任何内容都将被解释为字符串,因此您可以执行以下操作来开始解析您的输入:If you create a function called
.E.e
, anything you pass to it will be interpreted as a string, so you can do something like this to start parsing your input: