postgres

package
v0.0.0-...-d51db54 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresConnection

type PostgresConnection struct {
	database.IDatabase
	// contains filtered or unexported fields
}

func (*PostgresConnection) ChangeDBUserPassword

func (db *PostgresConnection) ChangeDBUserPassword(ctx context.Context, username string, password string) (err error)

func (*PostgresConnection) Close

func (db *PostgresConnection) Close() (err error)

func (*PostgresConnection) CreateDBUser

func (db *PostgresConnection) CreateDBUser(ctx context.Context, username string, password string) (err error)

func (*PostgresConnection) CreateIssue

func (db *PostgresConnection) CreateIssue(ctx context.Context, issue generic.Issue) (issueID *int, err error)

func (*PostgresConnection) CreateProject

func (db *PostgresConnection) CreateProject(ctx context.Context, project generic.Project) (projectID *int, err error)

func (*PostgresConnection) CreateTask

func (db *PostgresConnection) CreateTask(ctx context.Context, task generic.Task) (taskID *int, err error)

func (*PostgresConnection) CreateUser

func (db *PostgresConnection) CreateUser(ctx context.Context, user generic.User) (userID *int, err error)

func (*PostgresConnection) DeactivateUser

func (db *PostgresConnection) DeactivateUser(ctx context.Context, userID int) (err error)

func (*PostgresConnection) DeleteComment

func (db *PostgresConnection) DeleteComment(ctx context.Context, commentID int) (err error)

func (*PostgresConnection) DeleteDBUser

func (db *PostgresConnection) DeleteDBUser(ctx context.Context, username string) (err error)

func (*PostgresConnection) DeleteIssue

func (db *PostgresConnection) DeleteIssue(ctx context.Context, issueID int) (err error)

func (*PostgresConnection) DeleteProject

func (db *PostgresConnection) DeleteProject(ctx context.Context, projectID int) (err error)

func (*PostgresConnection) DeleteTask

func (db *PostgresConnection) DeleteTask(ctx context.Context, taskID int) (err error)

func (*PostgresConnection) DeploySchema

func (db *PostgresConnection) DeploySchema() error

func (*PostgresConnection) EnsureIssueCapability

func (db *PostgresConnection) EnsureIssueCapability(ctx context.Context, userID, issueID int) (readCapability, editCapability bool, err error)

func (*PostgresConnection) EnsureProjectCapability

func (db *PostgresConnection) EnsureProjectCapability(ctx context.Context, userID, projectID int) (readCapability, tasksCapability, issuesCapability, manageCapability bool, err error)

func (*PostgresConnection) EnsureTaskCapability

func (db *PostgresConnection) EnsureTaskCapability(ctx context.Context, userID, taskID int) (readCapability, editCapability, manageCapability bool, err error)

func (*PostgresConnection) EnsureUsersCapability

func (db *PostgresConnection) EnsureUsersCapability(ctx context.Context, userID int) (manageCapability, directorCapability bool, err error)

func (*PostgresConnection) GetAllUsers

func (db *PostgresConnection) GetAllUsers(ctx context.Context) (users []generic.User, err error)

func (*PostgresConnection) GetProjectIssues

func (db *PostgresConnection) GetProjectIssues(ctx context.Context, projectID int) (issueIDs []int, err error)

func (*PostgresConnection) GetProjectTasks

func (db *PostgresConnection) GetProjectTasks(ctx context.Context, projectID int) (taskIDs []int, err error)

func (*PostgresConnection) GetUserByUsername

func (db *PostgresConnection) GetUserByUsername(ctx context.Context, username string) (userID *int, isActive bool, err error)

func (*PostgresConnection) GetUserIssues

func (db *PostgresConnection) GetUserIssues(ctx context.Context, userID int) (issueIDs []int, err error)

func (*PostgresConnection) GetUserProjectTasks

func (db *PostgresConnection) GetUserProjectTasks(ctx context.Context, userID, projectID int) (taskIDs []int, err error)

func (*PostgresConnection) GetUserProjects

func (db *PostgresConnection) GetUserProjects(ctx context.Context, userID int) (projectIDs []int, err error)

func (*PostgresConnection) GetUserTasks

func (db *PostgresConnection) GetUserTasks(ctx context.Context, userID int) (taskIDs []int, err error)

func (*PostgresConnection) PublishComment

func (db *PostgresConnection) PublishComment(ctx context.Context, userID int, taskID int, text string) (commentID *int, err error)

func (*PostgresConnection) ReadComment

func (db *PostgresConnection) ReadComment(ctx context.Context, commentID int) (comment *generic.Comment, err error)

func (*PostgresConnection) ReadIssue

func (db *PostgresConnection) ReadIssue(ctx context.Context, issueID int) (issue *generic.Issue, err error)

func (*PostgresConnection) ReadIssueRecursive

func (db *PostgresConnection) ReadIssueRecursive(ctx context.Context, issueID int) (issue *generic.Issue, err error)

func (*PostgresConnection) ReadProject

func (db *PostgresConnection) ReadProject(ctx context.Context, projectID int) (project *generic.Project, err error)

func (*PostgresConnection) ReadProjectRecursive

func (db *PostgresConnection) ReadProjectRecursive(ctx context.Context, projectID int) (project *generic.Project, err error)

func (*PostgresConnection) ReadTask

func (db *PostgresConnection) ReadTask(ctx context.Context, taskID int) (task *generic.Task, err error)

func (*PostgresConnection) ReadTaskRecursive

func (db *PostgresConnection) ReadTaskRecursive(ctx context.Context, taskID int) (task *generic.Task, err error)

func (*PostgresConnection) ReadUser

func (db *PostgresConnection) ReadUser(ctx context.Context, userID int) (user *generic.User, err error)

func (*PostgresConnection) RegisterAttachment

func (db *PostgresConnection) RegisterAttachment(ctx context.Context, attachment string) (err error)

func (*PostgresConnection) RollbackClose

func (db *PostgresConnection) RollbackClose() (err error)

func (*PostgresConnection) SearchIssues

func (db *PostgresConnection) SearchIssues(ctx context.Context, query reqresp.SearchIssues, userID int) (issueIDs []int, err error)

func (*PostgresConnection) SearchTasks

func (db *PostgresConnection) SearchTasks(ctx context.Context, query reqresp.SearchTasks, userID int) (taskIDs []int, err error)

func (*PostgresConnection) SetRole

func (db *PostgresConnection) SetRole(ctx context.Context, username, role string, set bool) (err error)

func (*PostgresConnection) SetUserPermissions

func (db *PostgresConnection) SetUserPermissions(ctx context.Context, userID int, username string, isActive, isAdmin, isDirector bool) (err error)

func (*PostgresConnection) TasksReport

func (db *PostgresConnection) TasksReport(ctx context.Context, request reqresp.ReportRequest) (perUser []generic.TasksReport, err error)

func (*PostgresConnection) TimeEfficiencyReport

func (db *PostgresConnection) TimeEfficiencyReport(ctx context.Context, request reqresp.ReportRequest) (perUser []generic.TimeEfficiencyReport, err error)

func (*PostgresConnection) TrackTaskActivity

func (db *PostgresConnection) TrackTaskActivity(ctx context.Context, taskID int, text string, duration int) (err error)

func (*PostgresConnection) UpdateIssue

func (db *PostgresConnection) UpdateIssue(ctx context.Context, issueID int, issue generic.Issue) (err error)

func (*PostgresConnection) UpdateProject

func (db *PostgresConnection) UpdateProject(ctx context.Context, projectID int, project generic.Project) (err error)

func (*PostgresConnection) UpdateTask

func (db *PostgresConnection) UpdateTask(ctx context.Context, taskID int, task generic.Task) (err error)

func (*PostgresConnection) UpdateUser

func (db *PostgresConnection) UpdateUser(ctx context.Context, userID int, user generic.User) (err error)

Jump to

Keyboard shortcuts

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