开发者

design pattern for sql builder

开发者 https://www.devze.com 2023-02-10 04:38 出处:网络
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

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

精彩评论

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