Skip to content

Commit 1c181d6

Browse files
authored
8.1 Deployment (#61)
2 parents c72e577 + c697beb commit 1c181d6

20 files changed

+49
-25
lines changed

SQL_Adapter/AdapterActions/Execute.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -218,3 +218,4 @@ public Output<List<object>, bool> ExecuteCommand(IExecuteCommand command, Action
218218

219219

220220

221+

SQL_Adapter/AdapterActions/Pull.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -111,3 +111,4 @@ private Type GetDataType(IRequest request)
111111

112112

113113

114+

SQL_Adapter/AdapterActions/Push.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -214,3 +214,4 @@ private List<object> GetRowsToPush(IEnumerable<object> data, DataTable dataTable
214214

215215

216216

217+

SQL_Adapter/AdapterActions/Remove.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -47,3 +47,4 @@ public override int Remove(IRequest filter, ActionConfig actionConfig = null)
4747

4848

4949

50+

SQL_Adapter/Convert/ToDictionary.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -59,3 +59,4 @@ public static Dictionary<string, object> ToDictionary(object o)
5959

6060

6161

62+

SQL_Adapter/SQL_Adapter.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Authors>BHoM</Authors>
88
<Copyright>Copyright © https://github.com/BHoM</Copyright>
99
<RootNamespace>BH.Adapter.SQL</RootNamespace>
10-
<FileVersion>8.0.0.0</FileVersion>
10+
<FileVersion>8.1.0.0</FileVersion>
1111
<Configurations>Debug;Release;ZeroCodeTool</Configurations>
1212
<OutputPath>..\Build\</OutputPath>
1313
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

SQL_Adapter/SqlAdapter.cs

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -100,14 +100,21 @@ public string GetMatchingTable(Type type)
100100

101101
private void Initialise()
102102
{
103-
using (SqlConnection connection = new SqlConnection(m_ConnectionString))
103+
try
104104
{
105-
connection.Open();
105+
using (SqlConnection connection = new SqlConnection(m_ConnectionString))
106+
{
107+
connection.Open();
106108

107-
// Grab the defined types from the _tableTypes table if it exists in the database
108-
GrabTableTypes(connection);
109+
// Grab the defined types from the _tableTypes table if it exists in the database
110+
GrabTableTypes(connection);
109111

110-
connection.Close();
112+
connection.Close();
113+
}
114+
}
115+
catch (PlatformNotSupportedException ex)
116+
{
117+
BH.Engine.Base.Compute.RecordError("SQL is not supported in this UI. Please use Grasshopper in Rhino 7 or Excel.");
111118
}
112119
}
113120

@@ -195,3 +202,4 @@ private List<string> GetTableColumns(SqlConnection connection, string table)
195202

196203

197204

205+

SQL_Engine/Compute/NewTableCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -75,3 +75,4 @@ public static string NewTableCommand(this Type objectType, string tableName = ""
7575

7676

7777

78+

SQL_Engine/Convert/FromDictionary.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -71,3 +71,4 @@ public static object FromDictionary(this Dictionary<string, object> dic, Type ty
7171

7272

7373

74+

SQL_Engine/Convert/ToSqlCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -117,3 +117,4 @@ private static string ToSqlCommand(this object request)
117117

118118

119119

120+

SQL_Engine/Convert/ToSqlTypeString.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -79,3 +79,4 @@ public static string ToSqlTypeString(this Type type)
7979

8080

8181

82+

SQL_Engine/SQL_Engine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Authors>BHoM</Authors>
88
<Copyright>Copyright © https://github.com/BHoM</Copyright>
99
<RootNamespace>BH.Engine.SQL</RootNamespace>
10-
<FileVersion>8.0.0.0</FileVersion>
10+
<FileVersion>8.1.0.0</FileVersion>
1111
<Configurations>Debug;Release;ZeroCodeTool</Configurations>
1212
<OutputPath>..\Build\</OutputPath>
1313
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

SQL_oM/Commands/UpdateCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -49,3 +49,4 @@ public class UpdateCommand : IExecuteCommand
4949

5050

5151

52+

SQL_oM/Commands/UpsertCommand.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -58,3 +58,4 @@ public class UpsertCommand : IExecuteCommand
5858

5959

6060

61+

SQL_oM/Configs/PushConfig.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -44,3 +44,4 @@ public class PushConfig : ActionConfig
4444

4545

4646

47+

SQL_oM/Requests/CustomRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -44,3 +44,4 @@ public class CustomRequest : IRequest, ITypeStrongRequest
4444

4545

4646

47+

SQL_oM/Requests/ISingleTableRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -39,3 +39,4 @@ public interface ISingleTableRequest : IObject
3939
}
4040
}
4141

42+

SQL_oM/Requests/ITypeStrongRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -39,3 +39,4 @@ public interface ITypeStrongRequest : IObject
3939
}
4040
}
4141

42+

SQL_oM/Requests/TableRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* This file is part of the Buildings and Habitats object Model (BHoM)
3-
* Copyright (c) 2015 - 2024, the respective contributors. All rights reserved.
3+
* Copyright (c) 2015 - 2025, the respective contributors. All rights reserved.
44
*
55
* Each contributor holds copyright over their respective contributions.
66
* The project versioning (Git) records all such contribution source information.
@@ -49,3 +49,4 @@ public class TableRequest : IRequest, ITypeStrongRequest, ISingleTableRequest
4949

5050

5151

52+

SQL_oM/SQL_oM.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Authors>BHoM</Authors>
88
<Copyright>Copyright © https://github.com/BHoM</Copyright>
99
<RootNamespace>BH.oM.SQL</RootNamespace>
10-
<FileVersion>8.0.0.0</FileVersion>
10+
<FileVersion>8.1.0.0</FileVersion>
1111
<Configurations>Debug;Release;ZeroCodeTool</Configurations>
1212
<OutputPath>..\Build\</OutputPath>
1313
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>

0 commit comments

Comments
 (0)