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

Static Public Member Functions

static void DeclareCursor (this IRequest context, CursorInfo cursorInfo)
 
static void DeclareCursor (this IRequest context, string cursorName, SqlQueryExpression query)
 
static void DeclareCursor (this IRequest context, string cursorName, CursorFlags flags, SqlQueryExpression query)
 
static void DeclareInsensitiveCursor (this IRequest context, string cursorName, SqlQueryExpression query)
 
static void DeclareInsensitiveCursor (this IRequest context, string cursorName, SqlQueryExpression query, bool withScroll)
 
static bool CursorExists (this IRequest query, string cursorName)
 
static bool DropCursor (this IRequest query, string cursorName)
 
static Cursor FindCursor (this IRequest query, string cursorName)
 
static bool OpenCursor (this IRequest query, string cursorName, params SqlExpression[] args)
 
static bool CloseCursor (this IRequest query, string cursorName)
 

Detailed Description

Definition at line 8 of file RequestExtensions.cs.

Member Function Documentation

static bool Deveel.Data.Sql.Cursors.RequestExtensions.CloseCursor ( this IRequest  query,
string  cursorName 
)
inlinestatic

Definition at line 56 of file RequestExtensions.cs.

56  {
57  return query.Context.CloseCursor(cursorName);
58  }
static bool Deveel.Data.Sql.Cursors.RequestExtensions.CursorExists ( this IRequest  query,
string  cursorName 
)
inlinestatic

Definition at line 40 of file RequestExtensions.cs.

40  {
41  return query.Context.CursorExists(cursorName);
42  }
static void Deveel.Data.Sql.Cursors.RequestExtensions.DeclareCursor ( this IRequest  context,
CursorInfo  cursorInfo 
)
inlinestatic

Definition at line 9 of file RequestExtensions.cs.

9  {
10  var queryPlan = context.Context.QueryPlanner().PlanQuery(new QueryInfo(context, cursorInfo.QueryExpression));
11  var selectedTables = queryPlan.DiscoverTableNames();
12  foreach (var tableName in selectedTables) {
13  if (!context.Query.UserCanSelectFromTable(tableName))
14  throw new MissingPrivilegesException(context.Query.UserName(), tableName, Privileges.Select);
15  }
16 
17  context.Context.DeclareCursor(cursorInfo);
18  }
static void Deveel.Data.Sql.Cursors.RequestExtensions.DeclareCursor ( this IRequest  context,
string  cursorName,
SqlQueryExpression  query 
)
inlinestatic

Definition at line 20 of file RequestExtensions.cs.

20  {
21  DeclareCursor(context, cursorName, (CursorFlags)0, query);
22  }
static void DeclareCursor(this IRequest context, CursorInfo cursorInfo)
static void Deveel.Data.Sql.Cursors.RequestExtensions.DeclareCursor ( this IRequest  context,
string  cursorName,
CursorFlags  flags,
SqlQueryExpression  query 
)
inlinestatic

Definition at line 24 of file RequestExtensions.cs.

24  {
25  context.DeclareCursor(new CursorInfo(cursorName, flags, query));
26  }
static void Deveel.Data.Sql.Cursors.RequestExtensions.DeclareInsensitiveCursor ( this IRequest  context,
string  cursorName,
SqlQueryExpression  query 
)
inlinestatic

Definition at line 28 of file RequestExtensions.cs.

28  {
29  DeclareInsensitiveCursor(context, cursorName, query, false);
30  }
static void DeclareInsensitiveCursor(this IRequest context, string cursorName, SqlQueryExpression query)
static void Deveel.Data.Sql.Cursors.RequestExtensions.DeclareInsensitiveCursor ( this IRequest  context,
string  cursorName,
SqlQueryExpression  query,
bool  withScroll 
)
inlinestatic

Definition at line 32 of file RequestExtensions.cs.

32  {
33  var flags = CursorFlags.Insensitive;
34  if (withScroll)
35  flags |= CursorFlags.Scroll;
36 
37  context.DeclareCursor(cursorName, flags, query);
38  }
static bool Deveel.Data.Sql.Cursors.RequestExtensions.DropCursor ( this IRequest  query,
string  cursorName 
)
inlinestatic

Definition at line 44 of file RequestExtensions.cs.

44  {
45  return query.Context.DropCursor(cursorName);
46  }
static Cursor Deveel.Data.Sql.Cursors.RequestExtensions.FindCursor ( this IRequest  query,
string  cursorName 
)
inlinestatic

Definition at line 48 of file RequestExtensions.cs.

48  {
49  return query.Context.FindCursor(cursorName);
50  }
static bool Deveel.Data.Sql.Cursors.RequestExtensions.OpenCursor ( this IRequest  query,
string  cursorName,
params SqlExpression[]  args 
)
inlinestatic

Definition at line 52 of file RequestExtensions.cs.

52  {
53  return query.Context.OpenCursor(query, cursorName, args);
54  }

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