forked from npgsql/npgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNpgsqlDataViewSupport.xml
More file actions
221 lines (205 loc) · 8.1 KB
/
NpgsqlDataViewSupport.xml
File metadata and controls
221 lines (205 loc) · 8.1 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
<?xml version="1.0" encoding="utf-8" ?>
<DataViewSupport xmlns="http://schemas.microsoft.com/VisualStudio/2007/07/Data/DataViewSupport">
<Define name="Columns">
<Selection type="Column" restrictions="{Table.table_catalog}, {Table.table_schema},{Table.table_name}">
<SelectionNode>
<DisplayName>{column_name}</DisplayName>
<Icon when="{InPrimaryKey} = true" name="PrimaryKey" assembly="" />
<Icon name="Column" />
<PropertiesRef name="Column Properties"/>
</SelectionNode>
</Selection>
</Define>
<Define name="Constraints">
<Selection type="Constraint" restrictions="{Table.table_catalog},{Table.table_schema},{Table.table_name}">
<SelectionNode>
<DisplayName>{constraint_name}</DisplayName>
<Icon name="PrimaryKey" when="{constraint_type} = 'PRIMARY KEY'" />
<Icon name="UniqueKey" when="{constraint_type} = 'UNIQUE'" />
<Icon name="ForeignKey" when="{constraint_type} = 'FOREIGN KEY'" />
<Icon name="CheckConstraint" when="{constraint_type} = 'CHECK'" />
<PropertiesRef name="Constraint Properties"/>
</SelectionNode>
</Selection>
</Define>
<Define name="Table Properties">
<Properties>
<Property name="table_name">
<DisplayName>Name</DisplayName>
</Property>
<Property name="table_schema">
<DisplayName>Schema</DisplayName>
</Property>
</Properties>
</Define>
<Define name="Column Properties">
<Properties>
<Property name="column_name">
<DisplayName>Name</DisplayName>
</Property>
<Property name="table_name">
<DisplayName>Table Name</DisplayName>
</Property>
<Property name="table_schema">
<DisplayName>Table Schema</DisplayName>
</Property>
<Property name="character_maximum_length">
<DisplayName>Character Max Length</DisplayName>
</Property>
<Property name="character_octet_length">
<DisplayName>Character Octet Length</DisplayName>
</Property>
<Property name="column_default">
<DisplayName>Default</DisplayName>
</Property>
<Property name="data_type">
<DisplayName>Data Type</DisplayName>
</Property>
<Property name="datetime_precision">
<DisplayName>Precision</DisplayName>
<Category>Date/Time</Category>
</Property>
<Property name="is_nullable">
<DisplayName>Nullable?</DisplayName>
</Property>
<Property name="numeric_precision">
<DisplayName>Precision</DisplayName>
<Category>Numeric</Category>
</Property>
<Property name="numeric_precision_radix">
<DisplayName>Precision Radix</DisplayName>
<Category>Numeric</Category>
</Property>
<Property name="numeric_scale">
<DisplayName>Scale</DisplayName>
<Category>Numeric</Category>
</Property>
<Property name="ordinal_position">
<DisplayName>Ordinal Position</DisplayName>
</Property>
</Properties>
</Define>
<Define name="Constraint Properties">
<Properties>
<Property name="CONSTRAINT_NAME">
<DisplayName>Name</DisplayName>
</Property>
<Property name="TABLE_NAME">
<DisplayName>Name</DisplayName>
</Property>
<Property name="TABLE_SCHEMA">
<DisplayName>Schema</DisplayName>
</Property>
<Property name="CONSTRAINT_TYPE">
<DisplayName>Type</DisplayName>
</Property>
<Property name="INITIALLY_DEFERRED">
<DisplayName>Initially Deferred</DisplayName>
</Property>
<Property name="IS_DEFERRABLE">
<DisplayName>Is Deferrable?</DisplayName>
</Property>
</Properties>
</Define>
<Define name="Global New Query Command">
<Command guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="0x3528" provider="884DD964-5327-461f-9F06-6484DD540F8F" />
</Define>
<Define name="Retrieve Data Command">
<Command guid="501822E1-B5AF-11d0-B4DC-00A0C91506EF" cmdid="0x3060" provider="884DD964-5327-461f-9F06-6484DD540F8F" />
</Define>
<Views>
<View name="ByType">
<DisplayName>By Type</DisplayName>
<GlobalCommands>
<CommandRef name="Global New Query Command" />
</GlobalCommands>
<ConnectionNode>
<InitialDisplayName>{Root.Database}</InitialDisplayName>
<Children>
<StaticNode nodeId="tables">
<DisplayName>Tables</DisplayName>
<Children>
<Selection type="table" filter="table_schema NOT IN ('pg_catalog', 'information_schema')">
<SelectionNode nodeId="Table">
<DisplayName when="{table_schema} = 'public'">{table_name}</DisplayName>
<DisplayName when="NOT ({table_schema} = 'public')">{table_schema}.{table_name}</DisplayName>
<Icon name="Table" />
<PropertiesRef name="Table Properties"/>
<Commands>
<CommandRef name="Retrieve Data Command" />
</Commands>
<Children>
<ChildListRef name="Columns" />
<ChildListRef name="Constraints" />
</Children>
</SelectionNode>
</Selection>
</Children>
</StaticNode>
<StaticNode nodeId="views">
<DisplayName>Views</DisplayName>
<Children>
<Selection type="view" filter="table_schema NOT IN ('pg_catalog', 'information_schema')">
<SelectionNode nodeId="Table">
<DisplayName when="{table_schema} = 'public'">{table_name}</DisplayName>
<DisplayName when="NOT ({table_schema} = 'public')">{table_schema}.{table_name}</DisplayName>
<Icon name="View" />
<PropertiesRef name="Table Properties"/>
<Commands>
<CommandRef name="Retrieve Data Command" />
</Commands>
<Children>
<ChildListRef name="Columns" />
</Children>
</SelectionNode>
</Selection>
</Children>
</StaticNode>
</Children>
</ConnectionNode>
</View> <!-- ByType -->
<View name="BySchema">
<DisplayName>By Schema</DisplayName>
<ConnectionNode>
<InitialDisplayName>{Root.Database}</InitialDisplayName>
<Children>
<Selection type="Schema" filter="schema_name NOT LIKE 'pg_%' AND schema_name <> 'information_schema'">
<SelectionNode nodeId="Schema">
<DisplayName>{schema_name}</DisplayName>
<Icon name="Schema" />
<Children>
<Selection type="table" restrictions="{Root.Database},{Schema.schema_name}">
<SelectionNode nodeId="Table">
<DisplayName>{table_name}</DisplayName>
<Icon name="Table" />
<PropertiesRef name="Table Properties"/>
<Commands>
<CommandRef name="Retrieve Data Command" />
</Commands>
<Children>
<ChildListRef name="Columns" />
<ChildListRef name="Constraints" />
</Children>
</SelectionNode>
</Selection>
<Selection type="view" restrictions="{Root.Database},{Schema.schema_name}">
<SelectionNode nodeId="Table">
<DisplayName>{table_name}</DisplayName>
<Icon name="Table" />
<PropertiesRef name="Table Properties"/>
<Commands>
<CommandRef name="Retrieve Data Command" />
</Commands>
<Children>
<ChildListRef name="Columns" />
</Children>
</SelectionNode>
</Selection>
</Children>
</SelectionNode>
</Selection>
</Children>
</ConnectionNode>
</View> <!-- BySchema-->
</Views>
</DataViewSupport>