问题描述
当我使用TSQLParser.Parse(...)加载.sql文件时,我最终得到了一个基于AST的对象模型。
When I load a .sql file using TSQLParser.Parse(...), I end up with an object model based on an AST.
有没有办法通过直接加载.dbschema文件来获取相同的对象模型?
Is there a way to get the same object model, by loading the .dbschema files directly?
我可以通过Sql100SchemaModel.Deserialize(...)加载.dbschema,并且从那里可以最终到达DataSchemaModel.GetElements<>(...)函数。但我无法弄清楚如何将该模型转换为上面的AST模型。
I can load the .dbschema via Sql100SchemaModel.Deserialize(...), and from there can eventually get to the DataSchemaModel.GetElements<>(...) functions. But I cannot figure out how to transform that model into the AST model above.
(我们正在为内部使用构建一些高级模式分析和生成工具 - 由于各种原因它最终更有效地直接处理.dbschema文件)
(We're building some advanced schema analysis & generation tools for internal use - for various reasons it ends up being more efficient to deal with the .dbschema file(s) directly)
谢谢
Grant
推荐答案
这是一个快速通知,让您知道我们正在对此问题进行研究,并会尽快回复您。感谢您的耐心等待。
This is a quick note to let you know that we are performing research on this issue and will get back to you as soon as possible. I appreciate your patience.
最诚挚的问候,
这篇关于将.dbschema文件加载到AST对象模型中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!