DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
deveeldb.git
src
deveeldb
Deveel.Data.Diagnostics
QueryEvent.cs
Go to the documentation of this file.
1
using
System
;
2
using
System
.Collections.Generic;
3
4
using
Deveel
.
Data
.
Sql
;
5
6
namespace
Deveel
.Data.Diagnostics {
7
public
sealed
class
QueryEvent
:
Event
{
8
public
QueryEvent
(
SqlQuery
query) {
9
if
(query == null)
10
throw
new
ArgumentNullException(
"query"
);
11
12
Query
= query;
13
}
14
15
public
SqlQuery
Query
{
get
;
private
set; }
16
17
protected
override
void
GetEventData
(Dictionary<string, object> data) {
18
data[
"query.text"
] =
Query
.Text;
19
data[
"query.paramStyle"
] =
Query
.ParameterStyle;
20
21
int
i = 0;
22
foreach
(var parameter
in
Query
.Parameters) {
23
data[String.Format(
"query.param[{0}].name"
, i)] = parameter.Name;
24
data[String.Format(
"query.param[{0}].type"
, i)] = parameter.SqlType.ToString();
25
data[String.Format(
"query.param[{0}].value"
, i)] = parameter.Value;
26
27
i++;
28
}
29
}
30
}
31
}
Deveel
System
Definition:
NonSerializedAttribute.cs:3
Deveel.Data.Query
Definition:
Query.cs:26
Deveel.Data.Sql.SqlQuery
Definition:
SqlQuery.cs:26
Deveel.Data.Diagnostics.Event
Definition:
Event.cs:21
Deveel.Data.Diagnostics.QueryEvent.QueryEvent
QueryEvent(SqlQuery query)
Definition:
QueryEvent.cs:8
Deveel.Data.Diagnostics.QueryEvent.GetEventData
override void GetEventData(Dictionary< string, object > data)
Definition:
QueryEvent.cs:17
Deveel.Data.Diagnostics.QueryEvent
Definition:
QueryEvent.cs:7
Deveel.Data
Definition:
ActiveSessionList.cs:22
Deveel.Data.Sql
Definition:
CellId.cs:22
Generated by
1.8.10