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
|
<Addin id = "Database.Sql.Npgsql"
namespace = "MonoDevelop"
name = "Npgsql provider for Mono Data Sql"
author = "Christian Hergert, Ben Motmans"
copyright = "MIT X11"
url = "http://www.monodevelop.com"
description = "Database Module"
category = "Database"
version = "1.0.0">
<Runtime>
<Import assembly="MonoDevelop.Database.Sql.Npgsql.dll"/>
</Runtime>
<Localizer type="Gettext" catalog="monodevelop-database"/>
<Dependencies>
<Addin id="Core" version="1.0.0"/>
<Addin id="Core.Gui" version="1.0.0"/>
<Addin id="Ide" version="1.0.0"/>
<Addin id="Database.Sql" version="1.0.0"/>
<Addin id="Database.Components" version="1.0.0"/>
<Addin id="Database.Designer" version="1.0.0"/>
</Dependencies>
<Extension path = "/MonoDevelop/Database/Sql">
<DatabaseFactory id = "Npgsql" class = "MonoDevelop.Database.Sql.NpgsqlDbFactory">
<!-- action flags -->
<Actions category="Database" flags="All" />
<Actions category="Table" flags="Drop,Rename,Schema" /> <!-- TODO: Create when GetSchema ("DataTypes") is implemented -->
<Actions category="View" flags="All" />
<Actions category="TableColumn" flags="All" />
<Actions category="Parameter" flags="Schema" />
<Actions category="Trigger" flags="All" />
<Actions category="PrimaryKeyConstraint" flags="Create,Drop,Rename,Schema" />
<Actions category="ForeignKeyConstraint" flags="Create,Drop,Rename,Schema" />
<Actions category="CheckConstraint" flags="Create,Drop,Rename,Schema" />
<Actions category="UniqueConstraint" flags="Create,Drop,Rename,Schema" />
<Actions category="User" flags="Schema" />
<!-- ConnectionSettings capabilities -->
<Capabilities category="ConnectionSettings" action="Schema" flags="Username,Password,Server,Port" />
<!-- table capabilities -->
<Capabilities category="Table" action="All" flags="Name,Definition,Schema,IsSystem,Columns,Constraints,Trigger" />
<Capabilities category="Table" action="Alter" flags="AppendConstraint,InsertConstraint,RemoveConstraint,AppendTrigger,InsertTrigger,RemoveTrigger,AppendColumn,InsertColumn,RemoveColumn" />
<!-- Table Column capabilities -->
<Capabilities category="TableColumn" action="All" flags="Name,Definition,Schema,DataType,DefaultValue,Nullable,Position,Constraints" />
<Capabilities category="TableColumn" action="Alter" flags="AppendConstraint,InsertConstraint,RemoveConstraint" />
<!-- View capabilities -->
<Capabilities category="View" action="All" flags="Name,Definition,Schema,Statement,IsSystem" />
<!-- Trigger capabilities -->
<Capabilities category="Trigger" action="All" flags="Name,Definition,Schema,TableName,TriggerType,TriggerEvent,TriggerFireType,Position,IsActive,Source" />
<!-- PrimaryKeyConstraint capabilities -->
<Capabilities category="PrimaryKeyConstraint" action="All" flags="Name,Columns,IsColumnConstraint" />
<!-- ForeignKeyConstraint capabilities -->
<Capabilities category="ForeignKeyConstraint" action="All" flags="Name,Columns,IsColumnConstraint,ReferenceTable,ReferenceColumns,Restrict,Cascade,SetNull,SetDefault,NoAction" />
<!-- CheckConstraint capabilities -->
<Capabilities category="CheckConstraint" action="All" flags="Name,Columns,IsColumnConstraint,Source" />
<!-- UniqueConstraint capabilities -->
<Capabilities category="UniqueConstraint" action="All" flags="Name,Columns,IsColumnConstraint" />
</DatabaseFactory>
</Extension>
</Addin>
|