forked from treejames/OneSQL
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunHistory.dfm
More file actions
244 lines (244 loc) · 5.74 KB
/
unHistory.dfm
File metadata and controls
244 lines (244 loc) · 5.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
object history: Thistory
Left = 0
Top = 0
BorderWidth = 4
Caption = 'SQL History'
ClientHeight = 554
ClientWidth = 776
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OldCreateOrder = False
Position = poScreenCenter
OnCreate = FormCreate
OnShow = FormShow
PixelsPerInch = 96
TextHeight = 13
object Panel1: TPanel
Left = 0
Top = 525
Width = 776
Height = 29
Align = alBottom
BevelOuter = bvNone
TabOrder = 0
DesignSize = (
776
29)
object Label1: TLabel
Left = 409
Top = 7
Width = 60
Height = 13
Caption = 'Limit results:'
end
object Label2: TLabel
Left = 508
Top = 7
Width = 26
Height = 13
Caption = 'Rows'
end
object buClose: TcxButton
Left = 697
Top = 2
Width = 75
Height = 25
Anchors = [akTop, akRight]
Caption = 'Close'
ModalResult = 8
OptionsImage.ImageIndex = 1
OptionsImage.Images = dm.imListSmall
TabOrder = 0
OnClick = buCloseClick
end
object edHistorySearch: TcxTextEdit
Left = 4
Top = 4
Properties.OnChange = edHistorySearchPropertiesChange
Style.TextColor = clWindowFrame
Style.TextStyle = [fsItalic]
TabOrder = 1
Text = 'Search History...'
OnEnter = edHistorySearchEnter
OnExit = edHistorySearchExit
Width = 400
end
object edLimit: TEdit
Left = 472
Top = 4
Width = 32
Height = 21
Alignment = taRightJustify
TabOrder = 2
Text = '20'
OnChange = edLimitChange
end
end
object Panel2: TPanel
Left = 0
Top = 0
Width = 137
Height = 525
Align = alLeft
BevelOuter = bvNone
BorderWidth = 4
TabOrder = 1
object grHistory: TcxGrid
Left = 4
Top = 4
Width = 129
Height = 517
Align = alClient
TabOrder = 0
object tvHistory: TcxGridDBTableView
Navigator.Buttons.CustomButtons = <>
OnCellDblClick = tvHistoryCellDblClick
DataController.DataSource = dsHistory
DataController.Summary.DefaultGroupSummaryItems = <>
DataController.Summary.FooterSummaryItems = <>
DataController.Summary.SummaryGroups = <>
OptionsData.Editing = False
OptionsData.Inserting = False
OptionsSelection.InvertSelect = False
OptionsSelection.MultiSelect = True
OptionsView.ColumnAutoWidth = True
OptionsView.GroupByBox = False
Preview.AutoHeight = False
Preview.MaxLineCount = 0
Preview.Visible = True
object tvHistoryts: TcxGridDBColumn
DataBinding.FieldName = 'ts'
Options.Editing = False
end
end
object lvHistory: TcxGridLevel
GridView = tvHistory
end
end
end
object Panel3: TPanel
Left = 137
Top = 0
Width = 639
Height = 525
Align = alClient
BevelOuter = bvNone
BorderWidth = 4
Caption = 'Panel3'
TabOrder = 2
object dbseStatement: TDBSynEdit
Left = 4
Top = 4
Width = 631
Height = 517
DataField = 'statement'
DataSource = dsHistory
Align = alClient
Ctl3D = True
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'Courier New'
Font.Style = []
ParentColor = False
ParentCtl3D = False
ParentFont = False
TabOrder = 0
Gutter.Font.Charset = DEFAULT_CHARSET
Gutter.Font.Color = clWindowText
Gutter.Font.Height = -11
Gutter.Font.Name = 'Courier New'
Gutter.Font.Style = []
Gutter.LeftOffset = 0
Gutter.ShowLineNumbers = True
Highlighter = syntax
Options = [eoAutoIndent, eoDragDropEditing, eoEnhanceEndKey, eoGroupUndo, eoShowScrollHint, eoSmartTabDelete, eoTabIndent]
RightEdge = 0
TabWidth = 2
end
end
object dsHistory: TDataSource
AutoEdit = False
DataSet = qHistory
Left = 512
Top = 16
end
object syntax: TSynSQLSyn
Options.AutoDetectEnabled = False
Options.AutoDetectLineLimit = 0
Options.Visible = False
Left = 584
Top = 16
end
object tiExecuteHistory: TTimer
Enabled = False
Interval = 750
OnTimer = tiExecuteHistoryTimer
Left = 624
Top = 16
end
object qHistory: TFDQuery
AfterDelete = qHistoryAfterDelete
Connection = main.SQLiteLogCon
UpdateOptions.AssignedValues = [uvRefreshMode]
UpdateOptions.RefreshMode = rmAll
SQL.Strings = (
'select'
' *'
'from'
' sql_history'
'where'
' (:P_SEARCH = '#39#39' or statement like '#39'%'#39' || :P_SEARCH || '#39'%'#39')'
' and sess = :P_SESSION'
'order by'
' id desc'
'limit'
' :P_LIMIT')
Left = 544
Top = 16
ParamData = <
item
Name = 'P_SEARCH'
DataType = ftString
ParamType = ptInput
Value = Null
end
item
Name = 'P_SESSION'
DataType = ftString
ParamType = ptInput
Value = ''
end
item
Name = 'P_LIMIT'
DataType = ftInteger
ParamType = ptInput
Value = Null
end>
object qHistoryid: TFDAutoIncField
FieldName = 'id'
Origin = 'id'
ProviderFlags = [pfInWhere, pfInKey]
ReadOnly = True
end
object qHistorysess: TMemoField
FieldName = 'sess'
Origin = 'sess'
BlobType = ftMemo
end
object qHistorystatement: TMemoField
FieldName = 'statement'
Origin = 'statement'
BlobType = ftMemo
end
object qHistoryts: TDateTimeField
DisplayLabel = 'Timestamp'
FieldName = 'ts'
Origin = 'ts'
end
end
end