18 using System.Collections.Generic;
23 namespace Deveel.Data.Sql.Statements {
30 var sqlQuery =
new SqlQuery(sqlSource);
31 if (parameters != null) {
32 foreach (var parameter
in parameters) {
33 sqlQuery.Parameters.Add(parameter);
37 return query.ExecuteQuery(sqlQuery);
41 return query.ExecuteQuery(sqlSource, null);
49 return ExecuteCreateView(query, viewName,
new string[0], querySource);
55 throw new ArgumentException(
"The input query string is invalid.",
"querySource");
61 return ExecuteCreateView(query, viewName,
new string[0], queryExpression);
67 return statement.Execute(query);
Defines the contract to access the data contained into a table of a database.
static ITable ExecuteCreateView(this IQuery query, string viewName, IEnumerable< string > columnNames, SqlQueryExpression queryExpression)
static SqlExpression Parse(string s)
Parses the given SQL string to an expression that can be evaluated.
static ITable[] ExecuteQuery(this IQuery query, SqlQuery sqlQuery)
static ITable[] Execute(IRequest query, SqlQuery sqlQuery)
This method transforms the input SQL query into a set of statements, prepares and executes them again...
static ITable ExecuteCreateView(this IQuery query, string viewName, string querySource)
static ITable[] ExecuteQuery(this IQuery query, string sqlSource, params QueryParameter[] parameters)
static ITable ExecuteCreateView(this IQuery query, string viewName, SqlQueryExpression queryExpression)
SqlExpressionType
All the possible type of SqlExpression supported
static ITable ExecuteCreateView(this IQuery query, string viewName, IEnumerable< string > columnNames, string querySource)
static ITable[] ExecuteQuery(this IQuery query, string sqlSource)
Defines the base class for instances that represent SQL expression tree nodes.
This class is used to transform an input query to a set of statements and execute them within a given...