Definition at line 25 of file DropTableStatement.cs.
Deveel.Data.Sql.Statements.DropTableStatement.DropTableStatement |
( |
string[] |
tableNames | ) |
|
|
inline |
Deveel.Data.Sql.Statements.DropTableStatement.DropTableStatement |
( |
string[] |
tableNames, |
|
|
bool |
ifExists |
|
) |
| |
|
inline |
Definition at line 30 of file DropTableStatement.cs.
31 if (tableNames == null)
32 throw new ArgumentNullException(
"tableNames");
33 if (tableNames.Length == 0)
34 throw new ArgumentException(
"The table name list cannot be empty",
"tableNames");
36 if (tableNames.Any(
String.IsNullOrEmpty))
37 throw new ArgumentException(
"One of the specified table names is null.");
A long string in the system.
Deveel.Data.Sql.Statements.DropTableStatement.DropTableStatement |
( |
string |
tableName | ) |
|
|
inline |
Deveel.Data.Sql.Statements.DropTableStatement.DropTableStatement |
( |
string |
tableName, |
|
|
bool |
ifExists |
|
) |
| |
|
inline |
IStatement IPreparableStatement. Deveel.Data.Sql.Statements.DropTableStatement.Prepare |
( |
IRequest |
context | ) |
|
|
inlineprivate |
Implements Deveel.Data.Sql.Statements.IPreparableStatement.
Definition at line 55 of file DropTableStatement.cs.
57 var dropTables =
new List<string>();
59 foreach (var tableName
in tableNameList) {
60 if (dropTables.Contains(tableName, StringComparer.OrdinalIgnoreCase))
61 throw new StatementPrepareException(
String.Format(
"Duplicated table name '{0}' in the list of tables to drop.",
64 dropTables.Add(tableName);
67 var resolvedTableNames = dropTables.Select(context.Query.ResolveTableName);
69 return new Prepared(resolvedTableNames.ToArray(),
IfExists);
A long string in the system.
bool Deveel.Data.Sql.Statements.DropTableStatement.IfExists |
|
getset |
string [] Deveel.Data.Sql.Statements.DropTableStatement.TableNames |
|
getprivate set |
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/DropTableStatement.cs