2 using System.Collections.Generic;
9 namespace Deveel.Data.Sql.Statements {
12 if (tableName == null)
13 throw new ArgumentNullException(
"tableName");
14 if (String.IsNullOrEmpty(cursorName))
15 throw new ArgumentNullException(
"cursorName");
17 TableName = tableName;
18 CursorName = cursorName;
23 public string CursorName {
get;
private set; }
26 var cursor = request.FindCursor(CursorName);
30 var tableName = request.
Query.ResolveTableName(TableName);
31 if (tableName == null)
34 var table = request.
Query.GetMutableTable(tableName);
38 var columns = table.TableInfo.Select(x =>
new ObjectName(tableName, x.ColumnName));
40 var queryExpression = cursor.QueryExpression;
43 var assignments =
new List<SqlColumnAssignment>();
44 foreach (var column
in columns) {
50 throw new NotImplementedException();
58 throw new NotImplementedException();
UpdateFromCursorStatement(ObjectName tableName, string cursorName)
Describes the name of an object within a database.
Represents the foundation class of SQL statements to be executed.
static QueryExpressionFrom Create(IRequest context, SqlQueryExpression expression)
IStatement Prepare(IRequest request)
override void ExecuteStatement(ExecutionContext context)