Skip to content

Commit

Permalink
Create initial implementation of SQL Formatter
Browse files Browse the repository at this point in the history
This (work in progress) is a VBA port of https://github.com/doctrine/sql-formatter intended to format SQL queries with better indenting and layout to improve readability in version control. #426
  • Loading branch information
joyfullservice committed Aug 15, 2023
1 parent 530d491 commit f1414ce
Show file tree
Hide file tree
Showing 2 changed files with 1,029 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Version Control.accda.src/modules/clsConcat.cls
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,25 @@ Public Function MidStr(lngStart As Long, Optional lngLength As Long = -1) As Str
End Function


'---------------------------------------------------------------------------------------
' Procedure : RTrim
' Author : Adam Waller
' Date : 8/14/2023
' Purpose : Trim trailing whitespace from content
'---------------------------------------------------------------------------------------
'
Public Function RTrim(Optional strTrimChars As String = " ")
Do
If Me.Length < Len(strTrimChars) Then Exit Do
If Me.RightStr(Len(strTrimChars)) = strTrimChars Then
Me.Remove Len(strTrimChars)
Else
Exit Do
End If
Loop
End Function


'---------------------------------------------------------------------------------------
' Procedure : Right
' Author : Adam Waller
Expand Down
Loading

0 comments on commit f1414ce

Please sign in to comment.