开发者

design pattern for sql builder

I want to write sql builder 开发者_StackOverflow中文版( in: conditions(where, limits, table, etc), out: pure sql. ). Which design pattern nearest for this task?


Some kind of expression tree along with a visitor or maybe some kind of interpreter.

http://en.wikipedia.org/wiki/Visitor_pattern
http://en.wikipedia.org/wiki/Interpreter_pattern

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜