7
mirror of https://github.com/issus/altium-library.git synced 2025-04-01 03:16:56 +00:00

Updated database project to include new views and updated components table

This commit is contained in:
Mark 2016-07-16 13:14:42 -06:00
parent fd12fe45eb
commit 46a5c99d5e
7 changed files with 243 additions and 1 deletions

View File

@ -265,10 +265,23 @@
[ChannelCapacitance] VARCHAR (50) NULL,
[ChannelLeakage] VARCHAR (50) NULL,
[Crosstalk] VARCHAR (50) NULL,
[Reset] VARCHAR (50) NULL,
[ResetTimeout] VARCHAR (50) NULL,
[VoltageThreshold] VARCHAR (50) NULL,
[ContactTermination] VARCHAR (50) NULL,
[ShieldTermination] VARCHAR (50) NULL,
[CableGroup] VARCHAR (50) NULL,
[BodyMaterial] VARCHAR (50) NULL,
[BodyFinish] VARCHAR (50) NULL,
[CenterContactMaterial] VARCHAR (50) NULL,
[CenterContactPlating] VARCHAR (50) NULL,
[DielectricMaterial] VARCHAR (50) NULL,
CONSTRAINT [PK_Components] PRIMARY KEY CLUSTERED ([PartId] ASC)
);
GO
CREATE NONCLUSTERED INDEX [IX_ComponentType]
ON [dbo].[Components]([ComponentType] ASC);

View File

@ -0,0 +1,52 @@

CREATE VIEW [dbo].[Connector - RF]
AS
SELECT TOP (100) PERCENT PartId,
Value,
Comment,
MfrPartNo AS [Part Number],
Manufacturer,
Description,
Supplier1 AS [Supplier 1],
Supplier1PartNo AS [Supplier Part Number 1],
FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path],
SymbolRef AS [Library Ref],
SymbolPath AS [Library Path],
ComponentLink1Description,
ComponentLink1URL,
ComponentLink2Description,
ComponentLink2URL,
ComponentLink3Description,
ComponentLink3URL,
Supplier2 AS [Supplier 2],
Supplier2PartNo AS [Supplier Part Number 2],
FootprintRef2 AS [Footprint Ref 2],
FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3],
FootprintPath3 AS [Footprint Path 3],
Price,
Type,
TemperatureRange AS [Operating Temperature],
Style,
Series,
ContactTermination AS [Contact Termination],
ShieldTermination AS [Shield Termination],
Impedance,
MountingType AS [Mounting Type],
CableGroup AS [Cable Group],
FasteningType AS [Fastening Type],
FrequencyUpper AS [Frequency - Max],
Features,
Colour AS [Housing Colour],
IngressProtection AS [Ingress Protection],
BodyMaterial AS [Body Material],
BodyFinish AS [Body Finish],
CenterContactMaterial AS [Center Contact Material],
CenterContactPlating AS [Center Contact Plating],
DielectricMaterial AS [Dielectric Material],
Voltage AS [Voltage Rating]
FROM dbo.Components
WHERE (ComponentType = 'CONN') AND ComponentSubType = 'RF'

View File

@ -0,0 +1,43 @@

CREATE VIEW [dbo].[Interface - CAN]
AS
SELECT PartId,
Value,
Comment,
MfrPartNo AS [Part Number],
Manufacturer,
Description,
Supplier1 AS [Supplier 1],
Supplier1PartNo AS [Supplier Part Number 1],
FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path],
SymbolRef AS [Library Ref],
SymbolPath AS [Library Path],
ComponentLink1Description,
ComponentLink1URL,
ComponentLink2Description,
ComponentLink2URL,
ComponentLink3Description,
ComponentLink3URL,
Supplier2 AS [Supplier 2],
Supplier2PartNo AS [Supplier Part Number 2],
FootprintRef2 AS [Footprint Ref 2],
FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3],
FootprintPath3 AS [Footprint Path 3],
Price,
Type,
DevicePackage AS [Device Package],
TemperatureRange AS [Operating Temperature],
Protocol,
NumberOfDriversReceivers AS [Number of Drivers/Receivers],
Duplex,
ReceiverHysteresis AS [Receiver Hysteresis],
DataRate AS [Data Rate],
Voltage AS [Voltage - Supply]
FROM dbo.Components
WHERE (ComponentType = 'CAN')

View File

@ -0,0 +1,43 @@

CREATE VIEW [dbo].[Interface - Ethernet]
AS
SELECT PartId,
Value,
Comment,
MfrPartNo AS [Part Number],
Manufacturer,
Description,
Supplier1 AS [Supplier 1],
Supplier1PartNo AS [Supplier Part Number 1],
FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path],
SymbolRef AS [Library Ref],
SymbolPath AS [Library Path],
ComponentLink1Description,
ComponentLink1URL,
ComponentLink2Description,
ComponentLink2URL,
ComponentLink3Description,
ComponentLink3URL,
Supplier2 AS [Supplier 2],
Supplier2PartNo AS [Supplier Part Number 2],
FootprintRef2 AS [Footprint Ref 2],
FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3],
FootprintPath3 AS [Footprint Path 3],
Price,
Type,
DevicePackage AS [Device Package],
TemperatureRange AS [Operating Temperature],
Protocol,
NumberOfDriversReceivers AS [Number of Drivers/Receivers],
Duplex,
ReceiverHysteresis AS [Receiver Hysteresis],
DataRate AS [Data Rate],
Voltage AS [Voltage - Supply]
FROM dbo.Components
WHERE (ComponentType = 'ETH')

View File

@ -0,0 +1,43 @@

CREATE VIEW [dbo].[Interface - RS485]
AS
SELECT PartId,
Value,
Comment,
MfrPartNo AS [Part Number],
Manufacturer,
Description,
Supplier1 AS [Supplier 1],
Supplier1PartNo AS [Supplier Part Number 1],
FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path],
SymbolRef AS [Library Ref],
SymbolPath AS [Library Path],
ComponentLink1Description,
ComponentLink1URL,
ComponentLink2Description,
ComponentLink2URL,
ComponentLink3Description,
ComponentLink3URL,
Supplier2 AS [Supplier 2],
Supplier2PartNo AS [Supplier Part Number 2],
FootprintRef2 AS [Footprint Ref 2],
FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3],
FootprintPath3 AS [Footprint Path 3],
Price,
Type,
DevicePackage AS [Device Package],
TemperatureRange AS [Operating Temperature],
Protocol,
NumberOfDriversReceivers AS [Number of Drivers/Receivers],
Duplex,
ReceiverHysteresis AS [Receiver Hysteresis],
DataRate AS [Data Rate],
Voltage AS [Voltage - Supply]
FROM dbo.Components
WHERE (ComponentType = 'RS485')

View File

@ -0,0 +1,42 @@

CREATE VIEW [dbo].[Reset Supervisor]
AS
SELECT PartId,
Value,
Comment,
MfrPartNo AS [Part Number],
Manufacturer,
Description,
Supplier1 AS [Supplier 1],
Supplier1PartNo AS [Supplier Part Number 1],
FootprintRef AS [Footprint Ref],
FootprintPath AS [Footprint Path],
SymbolRef AS [Library Ref],
SymbolPath AS [Library Path],
ComponentLink1Description,
ComponentLink1URL,
ComponentLink2Description,
ComponentLink2URL,
ComponentLink3Description,
ComponentLink3URL,
Supplier2 AS [Supplier 2],
Supplier2PartNo AS [Supplier Part Number 2],
FootprintRef2 AS [Footprint Ref 2],
FootprintPath2 AS [Footprint Path 2],
FootprintRef3 AS [Footprint Ref 3],
FootprintPath3 AS [Footprint Path 3],
Price,
Type,
DevicePackage AS [Device Package],
TemperatureRange AS [Operating Temperature],
NumberOfInputs AS [Voltages Monitored],
Output,
Reset,
ResetTimeout AS [Reset Timeout],
VoltageThreshold AS [Voltage - Threshold]
FROM dbo.Components
WHERE (ComponentType = 'RESET')

View File

@ -8,7 +8,7 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectVersion>4.1</ProjectVersion>
<ProjectGuid>{e8d2b255-f780-4188-89ba-a3a393b1e265}</ProjectGuid>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider</DSP>
<DSP>Microsoft.Data.Tools.Schema.Sql.SqlAzureV12DatabaseSchemaProvider</DSP>
<OutputType>Database</OutputType>
<RootPath>
</RootPath>
@ -25,6 +25,7 @@
<TargetDatabaseSet>True</TargetDatabaseSet>
<DefaultCollation>SQL_Latin1_General_CP1_CI_AS</DefaultCollation>
<DefaultFilegroup>PRIMARY</DefaultFilegroup>
<GenerateCreateScript>True</GenerateCreateScript>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
@ -134,5 +135,10 @@
<Build Include="Views\Voltage Regulator - Switchmode.sql" />
<Build Include="Views\Battery Holder.sql" />
<Build Include="Views\Sensor - Temperature.sql" />
<Build Include="Views\Reset Supervisor.sql" />
<Build Include="Views\Interface - RS485.sql" />
<Build Include="Views\Interface - Ethernet.sql" />
<Build Include="Views\Interface - CAN.sql" />
<Build Include="Views\Connector - RF.sql" />
</ItemGroup>
</Project>