sortedcommits

package
v0.0.0-...-3b37907 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRow

func DeleteRow(id int) error

DeleteRow deletes one row in the sorted_commits table by special commit_id (foreign key to commits table) this will only be used to delete bot user activity once detected

func ResetAllRecords

func ResetAllRecords() error

ResetAllRecords this function would be called to reset the sorted_commits table for reorganization First deletes all rows in the table and then resets the auto_increment counter for the id column

func SetNewRecord

func SetNewRecord(c SortedCommit) error

SetNewRecord inserts one new record into the table

Types

type SortedCommit

type SortedCommit struct {
	ID       int
	CommitID int
	Date     time.Time
}

SortedCommit represents all columns in one sorted_commit entry in the sorted_commits table

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL