Skip to content

Commit f53e93e

Browse files
authored
Merge pull request #27 from data-solution-automation-engine/dev/sj/floss-v2-take1
floss clean up
2 parents f91f99e + 6af78f8 commit f53e93e

File tree

11 files changed

+78
-75
lines changed

11 files changed

+78
-75
lines changed

.gitattributes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#
1818
# Merging from the command prompt will add diff markers to the files if there
1919
# are conflicts (Merging from VS is not affected by the settings below, in VS
20-
# the diff markers are never inserted). Diff markers may cause the following
20+
# the diff markers are never inserted). Diff markers may cause the following
2121
# file extensions to fail to load in VS. An alternative would be to treat
2222
# these files as binary and thus will always conflict and require user
2323
# intervention with every merge. To do so, just uncomment the entries below
@@ -46,9 +46,9 @@
4646

4747
###############################################################################
4848
# diff behavior for common document formats
49-
#
49+
#
5050
# Convert binary document formats to text before diffing them. This feature
51-
# is only available from the command line. Turn it on by uncommenting the
51+
# is only available from the command line. Turn it on by uncommenting the
5252
# entries below.
5353
###############################################################################
5454
#*.doc diff=astextplain

.gitignore

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,14 @@ FodyWeavers.xsd
397397
# JetBrains Rider
398398
*.sln.iml
399399

400-
# Specifically include the reference dacpacs in the repo, so they can be directly referenced in project without requiring a separate build
401-
402-
!020_DIRECT_Framework/Reference_Databases/[Bb]in
403-
!020_DIRECT_Framework/Reference_Databases/[Bb]in/[Dd]ebug/
404-
020_DIRECT_Framework/Reference_Databases/[Bb]in/[Dd]ebug/*
405-
!020_DIRECT_Framework/Reference_Databases/bin/Debug/master.dacpac
406-
!020_DIRECT_Framework/Reference_Databases/bin/Debug/msdb.dacpac
400+
# DIRECT OPTION - Specifically include only the reference dacpacs in the repo,
401+
# so they can be directly referenced in project without requiring a separate build
402+
# The build process has a preprocess step that builds the references,
403+
# so including these are optional depending on the development and deploymetn workflow used
404+
# Also consider the build configuration used, the following is for a Debug build
405+
406+
# !Direct_Framework/Reference_Databases/[Bb]in
407+
# !Direct_Framework/Reference_Databases/[Bb]in/[Dd]ebug/
408+
# Direct_Framework/Reference_Databases/[Bb]in/[Dd]ebug/*
409+
# !Direct_Framework/Reference_Databases/bin/Debug/master.dacpac
410+
# !Direct_Framework/Reference_Databases/bin/Debug/msdb.dacpac

Direct_Framework/BuildTools/PreBuild.cmd

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,5 @@
33
rem Debug cmd for post-build event
44
ECHO *** CMD - Pre-Build Event: Building 'Direct_Framework' project...
55

6-
REM ECHO current directory: %CD%
7-
REM ECHO script directory: %~dp0
8-
96
rem Run the pre-build PowerShell script
107
pwsh -ExecutionPolicy Bypass -NoProfile -NonInteractive -File %~dp0\PreBuild.ps1 -path %~dp0

Documentation/Installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
The DIRECT framework can be deployed from the Visual Studio solution/project, using the publish function. Alternatively, the project can be compiled to a DACPAC and deployed via command-line tools such as sqlcmd.
44

5-
As part of the installation, post deployment scripts are run to provide the standard framework contents. Pre- and post DACPAC deploment placeholders are also available.
5+
As part of the installation, post deployment scripts are run to provide the standard framework contents. Pre- and post DACPAC deployment placeholders are also available.

Documentation/Model.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Direct Framework Physical Model
22

3-
This section contains the DIRECT physical model in MermaidChart format. The contents below can be rendered or pasted in the online editor (https://www.mermaidchart.com/).
3+
This section contains the DIRECT physical model in Mermaid erDiagram format.
4+
5+
The contents below can be rendered through mermaid [https://mermaid.js.org/](https://mermaid.js.org/) and [https://github.com/mermaid-js/mermaid](https://github.com/mermaid-js/mermaid), using any supported method, or pasted in an online editor such as [https://www.mermaidchart.com](https://www.mermaidchart.com).
46

57
```mermaid
68
---
@@ -31,7 +33,7 @@ erDiagram
3133
BATCH_INSTANCE {
3234
BATCH_INSTANCE_ID BIGINT PK
3335
BATCH_ID INT FK
34-
PARENT_BATCH_INSTANCE_ID BIGINT
36+
PARENT_BATCH_INSTANCE_ID BIGINT
3537
START_TIMESTAMP DATETIME2
3638
END_TIMESTAMP DATETIME2
3739
INTERNAL_PROCESSING_CODE NVARCHAR(100) FK
@@ -170,7 +172,7 @@ erDiagram
170172
EVENT_TYPE_CODE_DESCRIPTION NVARCHAR(4000)
171173
}
172174
173-
EVENT_TYPE ||..|{ EVENT_LOG : states
175+
EVENT_TYPE ||..|{ EVENT_LOG : states
174176
175177
EXECUTION_STATUS {
176178
EXECUTION_STATUS_CODE NVARCHAR(100) PK
@@ -186,7 +188,7 @@ erDiagram
186188
GROUP NVARCHAR(100)
187189
DESCRIPTION NVARCHAR(4000)
188190
ACTIVE_INDICATOR CHAR(1)
189-
}
191+
}
190192
191193
FREQUENCY {
192194
FREQUENCY_CODE NVARCHAR(100) PK

Example_Scripts/Maintenance/DIRECT_Non_Execution_Exception_Check.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--Show which modules haven't run in the last 3 days
2-
SELECT
2+
SELECT
33
module.MODULE_CODE,
44
module.MODULE_ID,
55
main.MODULE_INSTANCE_ID AS MOST_RECENT_MODULE_INSTANCE_ID,

Example_Scripts/Maintenance/DIRECT_Recent_Executions.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SELECT
1+
SELECT
22
MODULE_CODE,
33
modinst.EXECUTION_STATUS_CODE,
44
modinst.MODULE_INSTANCE_ID,

Example_Scripts/Maintenance/DIRECT_Runtime_Exception_Check.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ORDER BY 3 DESC
2424
-- Exception check Module level
2525
SELECT
2626
module.MODULE_CODE,
27-
main.BATCH_INSTANCE_ID,
27+
main.BATCH_INSTANCE_ID,
2828
main.MODULE_INSTANCE_ID AS MOST_RECENT_MODULE_INSTANCE_ID,
2929
main.START_DATETIME,
3030
main.END_DATETIME,

Example_Scripts/Maintenance/Generic_Table_Row_Count.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
on t.object_id = p.object_id
1111
inner join sys.allocation_units a on p.partition_id = a.container_id
1212
group by t.name
13-
order by
13+
order by
1414
CAST(FORMAT(SUM(round(8 * a.total_pages/1024.0,2)),'####') AS INT)
1515
DESC

Reference_Databases/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ This allows it to pull the required reference Dacpac files from nuget without ha
1919

2020
This project format also allows building the project using dotnet, removing a dependency on other, less readily available toolings, which can be helpful when building in containers, or through pipelines with limited tool support.
2121

22-
Version and references are kept at SQL Server 2019/150
22+
Version and references in the project are currently Azure SQL database, which is only using the master reference.
23+
24+
Add/remove references as needed, and set the version to the expected target. The below example uses version 150 instead (SQL Server 2019)
2325

2426
## Creating a project
2527

0 commit comments

Comments
 (0)