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

Classes

class  ReferenceDiscovery
 
class  SubQueryDiscovery
 

Static Public Member Functions

static void DiscoverTableNames (this SqlExpression expression, IList< ObjectName > tableNames)
 
static IList< QueryReferenceDiscoverQueryReferences (this SqlExpression expression, ref int level)
 
static IList< QueryReferenceDiscoverQueryReferences (this SqlExpression expression, ref int level, IList< QueryReference > list)
 
static IEnumerable< ObjectNameDiscoverReferences (this SqlExpression expression)
 
static bool HasSubQuery (this SqlExpression expression)
 

Detailed Description

Definition at line 25 of file QueryExpressionExtensions.cs.

Member Function Documentation

static IList<QueryReference> Deveel.Data.Sql.Query.QueryExpressionExtensions.DiscoverQueryReferences ( this SqlExpression  expression,
ref int  level 
)
inlinestatic

Definition at line 31 of file QueryExpressionExtensions.cs.

31  {
32  return DiscoverQueryReferences(expression, ref level, new List<QueryReference>());
33  }
static IList< QueryReference > DiscoverQueryReferences(this SqlExpression expression, ref int level)
static IList<QueryReference> Deveel.Data.Sql.Query.QueryExpressionExtensions.DiscoverQueryReferences ( this SqlExpression  expression,
ref int  level,
IList< QueryReference list 
)
inlinestatic

Definition at line 35 of file QueryExpressionExtensions.cs.

35  {
36  var visitor = new QueryReferencesVisitor(list, level);
37  visitor.Visit(expression);
38  level = visitor.Level;
39  return visitor.References;
40  }
static IEnumerable<ObjectName> Deveel.Data.Sql.Query.QueryExpressionExtensions.DiscoverReferences ( this SqlExpression  expression)
inlinestatic

Definition at line 42 of file QueryExpressionExtensions.cs.

42  {
43  var discovery = new ReferenceDiscovery();
44  return discovery.Discover(expression);
45  }
static void Deveel.Data.Sql.Query.QueryExpressionExtensions.DiscoverTableNames ( this SqlExpression  expression,
IList< ObjectName tableNames 
)
inlinestatic

Definition at line 26 of file QueryExpressionExtensions.cs.

26  {
27  var visitor = new TableNamesVisitor();
28  visitor.Visit(expression);
29  }
static bool Deveel.Data.Sql.Query.QueryExpressionExtensions.HasSubQuery ( this SqlExpression  expression)
inlinestatic

Definition at line 47 of file QueryExpressionExtensions.cs.

47  {
48  return new SubQueryDiscovery().Verify(expression);
49  }

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