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.UserSessionExtensions Class Reference

Classes

class  TableQueryInfo
 

Static Public Member Functions

static ITableQueryInfo GetTableQueryInfo (this ISession session, ObjectName tableName, ObjectName alias)
 
static IQueryPlanNode CreateQueryPlan (this ISession session, ObjectName tableName, ObjectName aliasedName)
 

Detailed Description

Definition at line 23 of file UserSessionExtensions.cs.

Member Function Documentation

static IQueryPlanNode Deveel.Data.Sql.Query.UserSessionExtensions.CreateQueryPlan ( this ISession  session,
ObjectName  tableName,
ObjectName  aliasedName 
)
inlinestatic

Definition at line 33 of file UserSessionExtensions.cs.

33  {
34  string tableType = session.GetTableType(tableName);
35  if (tableType.Equals(TableTypes.View))
36  return new FetchViewNode(tableName, aliasedName);
37 
38  return new FetchTableNode(tableName, aliasedName);
39  }
const string View
Definition: TableTypes.cs:27
Provides the constant names of the types of tables in a database system.
Definition: TableTypes.cs:24
static ITableQueryInfo Deveel.Data.Sql.Query.UserSessionExtensions.GetTableQueryInfo ( this ISession  session,
ObjectName  tableName,
ObjectName  alias 
)
inlinestatic

Definition at line 24 of file UserSessionExtensions.cs.

24  {
25  var tableInfo = session.GetTableInfo(tableName);
26  if (alias != null) {
27  tableInfo = tableInfo.Alias(alias);
28  }
29 
30  return new TableQueryInfo(session, tableInfo, tableName, alias);
31  }

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