CodeProvider for SQL

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The .NET framework includes CodeProviders for C# and other languages to
simplify generating source code.

Does anyone know of a product or open source project that provides the same
concept, but for the SQL language. Given the vast number of databases out
there, it makes sense to me to create a set of interfaces or classes for
generating the various SQL statements and then writing a code provider for
each target database.

For example,
SQLCodeGenerator
Handles rules and types common to all DDL statements
GenerateCastExpression
GenerateCaseFunction
GenerateComment
....

SQLSelectCodeGenerator derived from SQLCodeGenerate
Handles generating a valid SELECT statement for the target database.
GenerateTop
GenerateColumn
GenerateInfo
GenerateFrom
....

Does this make sense? Is it a good idea?

Ad.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top