如何将程序保存到 kdb/q 中?
大多数示例似乎都在 REPL 模式下运行。是否可以从磁盘加载 myprog.q?
Most of the examples seem to be run in REPL mode. Is it possible to load myprog.q from disk?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
或者,从正在运行的 REPL 内部
加载脚本。
另请注意,您可以将根工作区保存到磁盘并稍后恢复:
Alternatively, from inside a running REPL,
will load the script.
Also note that you can persist the root workspace to disk and resume later:
当然,您只需提供 .q 脚本的名称作为 q 进程的参数:
将在端口 5000 上启动 aq 进程。启动时它将执行脚本的内容。
Sure, you just need to provide the name of the .q script as an argument to the q process:
would start a q process on port 5000. On startup it will execute the contents of your script.