1 Feb 2005 10:57
Re: refactoring in generating dynamic SQL
Anthony Williams <anthony_w.geo <at> yahoo.com>
2005-02-01 09:57:42 GMT
2005-02-01 09:57:42 GMT
"Ramon Leon" <rleon <at> insario.com> writes: > Yes, very much the same as I suggested. I'm curious how long you used > this, and how you feel it worked for you? I developed this probably about 6-9 months before I left the company, and found it invaluable during that time. Like I said, it enabled us to implement the custom search facility, and to change and extend the database schema. > I haven't been using mine for > very long and I'd be very interested in a more detailed response of any > issues or shortcomings found in a production system using this approach. The difficulty I found was getting the joins right for "OR" scenarios --- you might need the same table joined multiple times, possibly with outer joins. > I wrote mine mostly for fun and learning about interpreters, but I'm > liking it enough that I may flush it out a bit and make it production > ready. I liked it, and I'd do it that way again. Retrospectively I prefer it to the other SQL framework I wrote at around the same time, which accepted pre-written SQL statements, and worked out what the columns and data types were for input and output; it was a nice framework, but you still needed to specify the SQL. It would have worked as a backend for the first approach, but as it happens the former framework was in Java, and the latter in C++. Anthony -- --(Continue reading)

RSS Feed