Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewNaylor committed Oct 5, 2020
1 parent 5ee9cbe commit 8f24024
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libguinget/PackageListTools.vb
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,9 @@ Public Class PackageListTools
" names where manifest.id = ids._rowid_ and manifest.version = versions._rowid_ " &
" and manifest.name = names._rowid_ order by ids.id;"

' SQL query for latest package version.
' Based on the code at the bottom of this page:
' https://www.sqlitetutorial.net/sqlite-window-functions/sqlite-last_value/#:~:text=The%20LAST_VALUE%20%28%29%20is%20a%20window%20function%20that,LAST_VALUE%20%28expression%29%20OVER%20%28%20PARTITION%20BY%20expression1%2C%20expression2%2C
Dim SqlQueryWithLatestVersion As String = "SELECT DISTINCT
ids.id, manifest.id, versions.version, manifest.version, names.name, manifest.name,
LAST_VALUE ( versions.version ) OVER (
Expand Down

0 comments on commit 8f24024

Please sign in to comment.