C# Class NetBase.Sql.QueryBuilder

This class responsible for parsing the SQL statement and creating a query object. Why haven't we used a parser generator... well, how would we ever learn anything? However, this is a very large class and could be broken down a little. The entry point is really the "Expression" function at the bottom. The key element here is really the tokenizer.
Datei anzeigen Open project: buttonpusher/NetBase Class Usage Examples

Public Methods

Method Description
Parse ( string stmt ) : IQuery

Private Methods

Method Description
BracketedFieldList ( ) : void
CreateExpression ( ) : void
Expression ( ) : void
FieldList ( ) : void
InsertExpression ( ) : void
JoinClause ( ) : void
SelectExpression ( ) : void
ValueList ( ) : void
WhereClause ( ) : void

Method Details

Parse() public method

public Parse ( string stmt ) : IQuery
stmt string
return IQuery