Definition at line 27 of file ColumnChecker.cs.
IEnumerable<string> Deveel.Data.Sql.Statements.ColumnChecker.CheckColumns |
( |
IEnumerable< string > |
columnNames | ) |
|
|
inline |
Definition at line 54 of file ColumnChecker.cs.
55 var result =
new List<string>();
57 foreach (var columnName
in columnNames) {
60 throw new InvalidOperationException(
String.Format(
"Column '{0}' not found in table.", columnName));
65 return result.ToArray();
A long string in the system.
abstract string ResolveColumnName(string columnName)
Definition at line 49 of file ColumnChecker.cs.
50 var expChecker =
new ExpressionChecker(
this);
51 return expChecker.Visit(expression);
Definition at line 68 of file ColumnChecker.cs.
69 var table = context.
Query.GetTable(tableName);
71 throw new InvalidOperationException(
String.Format(
"Table '{0}' not found in the context.", tableName));
73 var tableInfo = table.TableInfo;
74 var ignoreCase = context.
Query.IgnoreIdentifiersCase();
76 return new DefaultChecker(tableInfo, ignoreCase);
A long string in the system.
abstract string Deveel.Data.Sql.Statements.ColumnChecker.ResolveColumnName |
( |
string |
columnName | ) |
|
|
pure virtual |
IEnumerable<string> Deveel.Data.Sql.Statements.ColumnChecker.StripColumnList |
( |
string |
tableDomain, |
|
|
IEnumerable< string > |
columnList |
|
) |
| |
|
inline |
Definition at line 43 of file ColumnChecker.cs.
string StripTableName(string tableDomain, string column)
string Deveel.Data.Sql.Statements.ColumnChecker.StripTableName |
( |
string |
tableDomain, |
|
|
string |
column |
|
) |
| |
|
inline |
Definition at line 28 of file ColumnChecker.cs.
29 var index = column.IndexOf(
'.');
32 var columnPrefix = column.Substring(0, index);
33 if (!columnPrefix.Equals(tableDomain))
34 throw new InvalidOperationException(
String.Format(
"Column '{0}' is not within the expected table'{1}'",
35 column, tableDomain));
37 column = column.Substring(index + 1);
A long string in the system.
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb/Deveel.Data.Sql.Statements/ColumnChecker.cs