DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Sql.Parser.SqlParserExtensions Class Reference

Provides extensions to the ISqlParser interface instances. More...

Static Public Member Functions

static SqlParseResult Parse (this ISqlParser parser, Stream inputStream)
 
static SqlParseResult Parse (this ISqlParser parser, Stream inputStream, Encoding encoding)
 

Detailed Description

Provides extensions to the ISqlParser interface instances.

Definition at line 26 of file SqlParserExtensions.cs.

Member Function Documentation

static SqlParseResult Deveel.Data.Sql.Parser.SqlParserExtensions.Parse ( this ISqlParser  parser,
Stream  inputStream 
)
inlinestatic

Definition at line 27 of file SqlParserExtensions.cs.

27  {
28  return Parse(parser, inputStream, Encoding.Unicode);
29  }
static SqlParseResult Parse(this ISqlParser parser, Stream inputStream)
static SqlParseResult Deveel.Data.Sql.Parser.SqlParserExtensions.Parse ( this ISqlParser  parser,
Stream  inputStream,
Encoding  encoding 
)
inlinestatic

Definition at line 31 of file SqlParserExtensions.cs.

31  {
32  if (inputStream == null)
33  throw new ArgumentNullException("inputStream");
34  if (!inputStream.CanRead)
35  throw new ArgumentException("The input stream cannot be read.", "inputStream");
36 
37  using (var reader = new StreamReader(inputStream, encoding)) {
38  var text = reader.ReadToEnd();
39  return parser.Parse(text);
40  }
41  }

The documentation for this class was generated from the following file: