18 using System.Collections.Generic;
26 namespace Deveel.Data.Sql.Statements {
29 : this(viewNames, false) {
33 ViewNames = viewNames;
37 public string[] ViewNames {
get;
private set; }
39 public bool IfExists {
get; set; }
42 var viewNameList = ViewNames.ToList();
43 var dropViews =
new List<string>();
45 foreach (var tableName
in viewNameList) {
46 if (dropViews.Contains(tableName, StringComparer.OrdinalIgnoreCase))
50 dropViews.Add(tableName);
53 var resolvedNames = dropViews.Select(context.
Query.ResolveObjectName);
55 return new Prepared(resolvedNames.ToArray(), IfExists);
64 public bool IfExists {
get; set; }
67 ViewNames = viewNames;
77 data.
SetValue(
"ViewNames", ViewNames);
An exception that happens during the SqlStatement.Prepare(IExpressionPreparer, IQueryContext).
Prepared(ObjectData data)
void SetValue(string key, Type type, object value)
Describes the name of an object within a database.
DropViewStatement(string[] viewNames, bool ifExists)
override void GetData(SerializeData data)
Prepared(ObjectName[] viewNames, bool ifExists)
Represents the foundation class of SQL statements to be executed.
override void ExecuteStatement(ExecutionContext context)
DropViewStatement(string[] viewNames)
bool GetBoolean(string key)
object GetValue(string key)
IStatement Prepare(IRequest request)