-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Elsie <[email protected]>
- Loading branch information
Showing
20 changed files
with
372 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package model | ||
|
||
type RepologyProject struct { | ||
Name string `gorm:"primaryKey"` | ||
} | ||
|
||
var RepologyProjectColumns = struct { | ||
Name string | ||
}{ | ||
Name: "name", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package model | ||
|
||
const RepologyProjectProviderTableName = "repology_project_providers" | ||
|
||
type RepologyProjectProvider struct { | ||
ID uint `gorm:"primarykey"` | ||
ProjectName string `gorm:"index:"` | ||
Project RepologyProject `gorm:"foreignKey:Name"` | ||
Repository string | ||
SubRepository *string `gorm:"default:null"` | ||
SourceName *string `gorm:"index:,default:null"` | ||
VisibleName *string `gorm:"index:,default:null"` | ||
BinaryName *string `gorm:"index:,default:null"` | ||
Version string | ||
OriginalVersion string | ||
Status string | ||
Summary string | ||
Active bool `gorm:"index:,default:false"` | ||
} | ||
|
||
var RepologyProjectProviderColumns = struct { | ||
ID string | ||
ProjectName string | ||
Repository string | ||
SubRepository string | ||
SourceName string | ||
VisibleName string | ||
BinaryName string | ||
Version string | ||
OriginalVersion string | ||
Status string | ||
Summary string | ||
Active string | ||
}{ | ||
ID: "id", | ||
ProjectName: "project_name", | ||
Repository: "repository", | ||
SubRepository: "sub_repository", | ||
SourceName: "source_name", | ||
VisibleName: "visible_name", | ||
BinaryName: "binary_name", | ||
Version: "version", | ||
OriginalVersion: "original_version", | ||
Status: "status", | ||
Summary: "summary", | ||
Active: "active", | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package repology | ||
|
||
import "pacstall.dev/webserver/repology/internal" | ||
|
||
var ExportRepologyDatabase = internal.ExportRepologyDatabase |
Oops, something went wrong.