7 namespace Deveel.Data.Sql.Cursors {
11 var selectedTables = queryPlan.DiscoverTableNames();
12 foreach (var tableName
in selectedTables) {
13 if (!context.Query.UserCanSelectFromTable(tableName))
17 context.Context.DeclareCursor(cursorInfo);
21 DeclareCursor(context, cursorName, (
CursorFlags)0, query);
25 context.DeclareCursor(
new CursorInfo(cursorName, flags, query));
29 DeclareInsensitiveCursor(context, cursorName, query,
false);
37 context.DeclareCursor(cursorName, flags, query);
41 return query.
Context.CursorExists(cursorName);
45 return query.
Context.DropCursor(cursorName);
49 return query.
Context.FindCursor(cursorName);
53 return query.
Context.OpenCursor(query, cursorName, args);
57 return query.
Context.CloseCursor(cursorName);
static Cursor FindCursor(this IRequest query, string cursorName)
static void DeclareInsensitiveCursor(this IRequest context, string cursorName, SqlQueryExpression query)
static void DeclareCursor(this IRequest context, CursorInfo cursorInfo)
SqlQueryExpression QueryExpression
static bool CursorExists(this IRequest query, string cursorName)
static bool CloseCursor(this IRequest query, string cursorName)
static void DeclareCursor(this IRequest context, string cursorName, SqlQueryExpression query)
static void DeclareCursor(this IRequest context, string cursorName, CursorFlags flags, SqlQueryExpression query)
static bool OpenCursor(this IRequest query, string cursorName, params SqlExpression[] args)
Defines the base class for instances that represent SQL expression tree nodes.
static void DeclareInsensitiveCursor(this IRequest context, string cursorName, SqlQueryExpression query, bool withScroll)
static bool DropCursor(this IRequest query, string cursorName)