added SRCINFO caching via db

This commit is contained in:
2022-08-13 20:48:34 +02:00
parent 4ead1f74cd
commit 0f46a95995
11 changed files with 323 additions and 2 deletions

View File

@@ -51,6 +51,8 @@ const (
FieldIoIn = "io_in"
// FieldIoOut holds the string denoting the io_out field in the database.
FieldIoOut = "io_out"
// FieldSrcinfo holds the string denoting the srcinfo field in the database.
FieldSrcinfo = "srcinfo"
// Table holds the table name of the dbpackage in the database.
Table = "db_packages"
)
@@ -78,6 +80,7 @@ var Columns = []string{
FieldSTime,
FieldIoIn,
FieldIoOut,
FieldSrcinfo,
}
// ValidColumn reports if the column name is valid (part of the table columns).